<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/mini-r-quizzes/"></div></div><div><a data-url="https://www.r-bloggers.com/mini-r-quizzes/" data-counturl="https://www.r-bloggers.com/mini-r-quizzes/" data-count="horizontal" data-text="Mini R Quizzes" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://r-addict.com/2016/10/25/Mini-R-Quizes.html"> http://r-addict.com</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><img src="https://i1.wp.com/r-addict.com/images/fulls/rquiz2.JPG?w=456" data-recalc-dims="1"> Data Science is sometimes a stressful and responsible job… so we spontaneously organize mini R quizzes in our R team at the company!</p>
<h2>Chaining R packages</h2>
<p>One of my favourite fast 5-minutes long R game is <code>chaining R packages</code>. 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</p>
<figure>
<pre><code data-lang="r"><span>dplyr</span><span> </span><span>-></span><span> </span><span>ROCR</span><span> </span><span>-></span><span> </span><span>rpart</span><span> </span><span>-></span><span> </span><span>tm</span><span> </span><span>-></span><span> </span><span>mstate</span><span> </span><span>-></span><span> </span><span>e</span><span>1071</span></code></pre>
</figure>
<p><code>e1071</code> always finishes the game <img alt="🙂" class="wp-smiley" src="https://s.w.org/images/core/emoji/2/72x72/1f642.png"> 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!</p>
<h2>Guess which R package you are</h2>
<p><img src="https://i1.wp.com/r-addict.com/images/fulls/rquiz3.jpg?w=456" data-recalc-dims="1"> 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 <code>NO</code> or <code>YES</code> 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 <strong>Docker with paint, Windows 95, elasticsearch, crontab</strong> and <strong>dplyr</strong> <img alt="🙂" class="wp-smiley" src="https://s.w.org/images/core/emoji/2/72x72/1f642.png"></p>
<h2>Mini R quiz</h2>
<p>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</p>
<ul>
<li>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</li>
<li>What is the longest function name from base R? The best guess: <code>suppressPackageStartupMessages()</code> with 30 characters in its name has finally lost with <code>getDLLRegisteredRoutines.character</code> (34 chars!)</li>
</ul>
<figure>
<pre><code data-lang="r"><span>tail</span><span>(</span><span>sort</span><span>(</span><span>sapply</span><span>(</span><span>ls</span><span>(</span><span>&quot;package:base&quot;</span><span>),</span><span> </span><span>nchar</span><span>)),</span><span>6</span><span>)</span></code></pre>
</figure>
<figure>
<pre><code data-lang="text">       print.DLLRegisteredRoutines       as.character.numeric_version 
                                27                                 28 
     as.data.frame.numeric_version     suppressPackageStartupMessages 
                                29                                 30 
  getDLLRegisteredRoutines.DLLInfo getDLLRegisteredRoutines.character 
                                32                                 34 </code></pre>
</figure>
<p><img src="https://i0.wp.com/media2.giphy.com/media/hkMXte9dBJFfO/200_s.gif?w=456&ssl=1" data-recalc-dims="1"></p>
<p>If you have any great ideas on mini R games then please feel free to leave a comment below <a target="_blank" rel="nofollow" href="http://r-addict.com/2016/10/25/Mini-R-Quizes.html">on my blog</a></p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/mini-r-quizzes/"></div></div><div><a data-url="https://www.r-bloggers.com/mini-r-quizzes/" data-counturl="https://www.r-bloggers.com/mini-r-quizzes/" data-count="vertical" data-text="Mini R Quizzes" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://r-addict.com/2016/10/25/Mini-R-Quizes.html"> http://r-addict.com</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/rRE7dGIug1w"></a></div>