Learn R Programming

berryFunctions (version 1.6)

yearSample: Nonrandom year with sample

Description

Nerdy way to wish someone a happy new year by using sample. Can especially impress newbies a lot.

Usage

yearSample(year)

Arguments

year
4 digit numerical year.

Value

  • cats 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) }