Generate White Noise in R

Your goal

You need to randomly generate a white noise series in R.

Step-by-step tutorial

Here's how to generate white noise using rnorm and ts:

> white.noise <- ts(rnorm(1000))

We can plot it as follows:

> plot(white.noise)
White noise
White noise