In R, type the expression for the mean of the first four order amounts.
In R, type the expression for the mean of the first four order amounts.
Answer
(420 + 180 + 760 + 250) / 4
Prints [1] 402.5. The brackets force the sum before the division; without them only 250 is divided.