yearSample: Nonrandom year with sample

View source: R/yearSample.R

yearSampleR Documentation

Nonrandom year with sample

Description

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

Usage

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


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


berryFunctions documentation built on May 29, 2024, 4:01 a.m.