Mini R Quizzes

October 25, 2016
By

(This article was first published on http://r-addict.com, and kindly contributed to R-bloggers)

Data Science is sometimes a stressful and responsible job… so we spontaneously organize mini R quizzes in our R team at the company!

Chaining R packages

One of my favourite fast 5-minutes long R game is chaining R packages. One person says the name of an R package and the next person needs to say the name of an R package that starts on a letter on which the previous package has finished (and you can’t use packages that were already mentioned by previous players): example

dplyr -> ROCR -> rpart -> tm -> mstate -> e1071

e1071 always finishes the game 🙂 so instead of looking after the last character of a previous package name you can look after the last letter. Don’t open browser with CRAN archives!

Guess which R package you are

In this game you would normally have yellow sticker card glued to your forehead with a name of a famous person. Asking questions that can be only asked NO or YES by the audience you need to figure out who you really are.. but in our version your are a famous R package or a famous software! Last time I’ve seen Docker with paint, Windows 95, elasticsearch, crontab and dplyr 🙂

Mini R quiz

People keep asking questions about R and the person that is the closest to the answer wins a point. You can play till the 5th or 10th point – the winner might not pay for the beer if you organize an integration party next time. Even simple questions can not be easy to answer! In the last game I’ve asked

  • What is the number of packages in which Hadley Wickham is the co-author? Guesses: 17, 30 and 40 – all wrong: r-pkgs states that it might be 93 http://r-pkg.org/search.html?q=hadley+wickham
  • What is the longest function name from base R? The best guess: suppressPackageStartupMessages() with 30 characters in its name has finally lost with getDLLRegisteredRoutines.character (34 chars!)
tail(sort(sapply(ls("package:base"), nchar)),6)
       print.DLLRegisteredRoutines       as.character.numeric_version 
                                27                                 28 
     as.data.frame.numeric_version     suppressPackageStartupMessages 
                                29                                 30 
  getDLLRegisteredRoutines.DLLInfo getDLLRegisteredRoutines.character 
                                32                                 34 

If you have any great ideas on mini R games then please feel free to leave a comment below on my blog

To leave a comment for the author, please follow the link and comment on their blog: http://r-addict.com.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)