标签:
Random Samples and Permutations
sample(x, size, replace = FALSE, prob = NULL) sample.int(n, size = n, replace = FALSE, prob = NULL)
Samples in Normal Distribution
rnorm(n, mean = 0, sd = 1)
Generate Factor Levels
gl(n, k, length = n*k, labels = seq_len(n), ordered = FALSE)
标签:
原文地址:http://www.cnblogs.com/nicebear/p/4247727.html