DACSS 601 – Submission 1
After uninstalling RStudio, re-installing, and then re-installing the knitr package, today we’re going to complete some basic arithmetic:
#first, create a list of vectors
data <- c(1,3,5,7,9)
#second, let's try adding them together
data + data
[1] 2 6 10 14 18
#third, let's attempt some multiplication
data * data
[1] 1 9 25 49 81
#finally, let's finish our lesson with some division
data / data
[1] 1 1 1 1 1