O'Reilly logo
  • Suk Sohn thinks this is interesting:

# build up a vector of the even numbers in 1:10
> z <- NULL
> for (i in 1:10) if (i %%2 == 0) z <- c(z,i)
> z
[1]  2  4  6  8 10

From

Cover of The Art of R Programming

Note

???