Nonrandom year with sample

Share:

Description

Nerdy way to wish someone a happy new year by using sample

Usage

1
yearSample(year)

Arguments

year

4 digit numerical year.

Details

Nerdy way to wish someone a happy new year, eg:
Have a great
set.seed(1244); sample(0:9,4,T)

Value

cats command into the console that can be copypasted to anyone's R script.

Author(s)

Berry Boessenkool, berry-b@gmx.de, April 2014

See Also

nameSample to impress with "randomly" finding a name, set.seed, sample, letters

Examples

1
2
3
yearSample(2016)
# Have a nerdy
set.seed(12353); sample(0:9, 4, replace=TRUE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.