sample.simple()
Demonstration of the simple random sampling without replacement
Yihui Xie & Lijia Yu / 2017-04-04
The whole sample frame is denoted by a matrix (nrow * ncol
) in the
plane just for convenience, and the points being sampled are marked out (by
red circles by default). Each member of the population has an equal and known
chance of being selected.
library(animation)
ani.options(nmax = 50)
par(mar = rep(1, 4))
sample.simple()