The first command is simple addition, so the exercise is to add some numbers together. Open up R, and use it to do a few basic sums. In particular, it’s worth trying the following:
10+
). R will wait for you to finish before trying to execute it.FALSE
sqrt()
function to calculate the square root of 789round()
round()
factorial()
function that calculates the factorial function, n!
(e.g., 5! = 5*4*3*2*1
). Use it to calculate 25!
, and take note of the way that R formats the answer.factorial()
to (try to) calculate 2000!
, and note the answer that R gives.