Skip to content

jcken95/christmas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

christmas

Load package into R:

library(christmas)

Secret Santa

Use the secret_santa() function to allocate gift recipients by passing in a vector of people's names:

secret_santa(c("John", "Paul", "George", "Ringo"))

returns:

  gift_giver gift_recipient
1       Paul          Ringo
2     George           John
3       John           Paul
4      Ringo         George

Christmas cards

Create a snowman Christmas card, and save it to a file called card.png:

snowman_card("card.png", "From Nicola")

which looks like:

About

Christmas functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%