Question

Some R code:

Some German characters äößü

dat <- 1:20
s <- 0
for (i in seq_along(dat)) {
  s <- s + dat[i]
}

Inline R code: calc_rule(dat, k), and now a block of R code:

hist(dat, breaks = n)
var(dat)
myfun <- function (a) {
  mean(a)
}

Some invalid R code but still in typewriter font is data1.

Answerlist

Solution

There is some feedback here.

Meta-information

exname: R Code extype: mchoice exsolution: 100 exshuffle: TRUE



Try the exams.mylearn package in your browser

Any scripts or data that you put into this service are public.

exams.mylearn documentation built on April 20, 2021, 1:05 a.m.