
Last chance! 50% off unlimited learning
Sale ends in
Nerdy way to wish someone a happy new year by using sample
yearSample(year)
4 digit numerical year.
cat
s command into the console that can be copypasted to anyone's R script.
Nerdy way to wish someone a happy new year, eg:
Have a great
set.seed(1244); sample(0:9,4,T)
nameSample
to impress with "randomly" finding a name,
set.seed
, sample
, letters
# NOT RUN {
yearSample(2016)
# Have a nerdy
set.seed(12353); sample(0:9, 4, replace=TRUE)
# }
Run the code above in your browser using DataLab