Example: Suppose you were asked to compute the mean of the numbers: 1, 2, 3.
In R, you would first store these numbers in a vector x using:
x = c(1, 2, 3)
The 'c' is short for 'concatenate,' and tells R to combine all of the values you pass as arguments into a single vector.
Then compute the mean of x using:
mean(x)
30abd, 34, 38, 40
44, 48, 56