yearSample: Nonrandom year with sample
Description
Nerdy way to wish someone a happy new year by using sample.
Can especially impress newbies a lot.Arguments
year
4 digit numerical year.
Value
cat
s command into the console that can be copypasted to anyone's R script.}
author{Berry Boessenkool, email{berry-b@gmx.de}, April 2014}
seealso{ code{nameSample} to impress with "randomly" finding a name, code{set.seed}, code{sample}, code{letters} }
examples{
yearSample(2015)
# Have a nerdy
set.seed(1244); sample(0:9, 4, replace=TRUE)
}