ABSTRACT

This chapter reviews programming functions as well as interactions with the underlying operating system.

x = numeric(k) # create placeholder

for (i in 1:length(x)) {

x[i] = rnorm(1) # this is slow and inefficient!