Basic Math in R
We can do basic math using R.
Here are the operators you’ll need for addition, subtraction, multiplication, and division, respectively: + - * /
We’ll start with addition.
4+4
[1] 8
3+5
[1] 8
7-4
[1] 3
2-2
[1] 0
2*2
[1] 4
3*5
[1] 15
6/2
[1] 3
9/3
[1] 3
Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Lenna (2022, Feb. 9). Data Analytics and Computational Social Science: Test Post - Take 3. Retrieved from https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomlenna717860481/
BibTeX citation
@misc{lenna2022test, author = {Lenna, }, title = {Data Analytics and Computational Social Science: Test Post - Take 3}, url = {https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomlenna717860481/}, year = {2022} }