< ignore

# Change working directory
setwd("C:/folder_of_this_solution_file")
ps.name = "SmallExample"; sol.file = paste0(ps.name,"_sol.Rmd")
libs = NULL # character vector of all packages you load in the problem set
create.ps(sol.file=sol.file, ps.name=ps.name, user.name=NULL,libs=libs)

>

Exercise 1 -- Summary statistics

a) We often want to compute some summary statistic of a vector. For example:

#< task
x = 10:20
# Computing the sum of x
sum(x)
#>

Now compute the mean of x.

mean(x)


skranz/RTutor documentation built on Feb. 7, 2024, 12:53 a.m.