Session Ready
Exercise

Combining results

The foreach() function returns a list by default. One can convert results to a different format via arguments passed to foreach(). What argument should be passed in the code below so that the length corresponds to the output below? The foreach package is loaded in your namespace.

set.seed(1)
n.seq <- sample(1:1000, 10)
res <- foreach(n = n.seq, ___) %do% rnorm(n)
length(res)
[1] 5495
Instructions
50 XP
Possible Answers