<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/galentines-day-cards/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.masalmon.eu/2018/01/26/galentinesday/"> Maëlle</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Remember the <a rel="nofollow" href="http://www.masalmon.eu/2017/11/05/newborn-serie/" target="_blank">nascent series of blog posts about Parks and recreation</a>? Well, we’re still at one post, but don’t worry, here is a new one, and I’m sure the series will eventually be a real one. I’m looking at you, my R-Ladies friends. That said, today is not a day for passive agressive hints, because I’ve decided it’s <a rel="nofollow" href="https://en.wikipedia.org/wiki/Galentine%27s_Day" target="_blank">Galentine’s day</a> and I’ll show you how to craft cards for your R-Ladies friends from your R prompt!</p>
<p><span></span></p>
<p>Galentine’s day is a celebration Leslie Knope throws every year for her female friends, showering them with love and gifts. Since she’s very talented, she can even write them poems, but in the R version of Galentine’s day, we’ll make do with simple cards featuring Lesliesque compliments. Indeed, Leslie Knope is also known for her <a rel="nofollow" href="https://www.theodysseyonline.com/14-leslie-knope-compliments-ann-perkins-life" target="_blank">creative complimenting</a> of her best friend Ann. I’ve decided to adopt her tone by using three praising adjectives followed by an animal name, and to dedicate them to imaginary friends called Ann, Donna, April and Shauna. Had I not decided to steal names from the TV show, I could have used the <code>charlatan::ch_name()</code> from the <a rel="nofollow" href="https://github.com/ropensci/charlatan" target="_blank">rOpenSci <code>charlatan</code> package</a>, possibly extracting first names thanks to the <a rel="nofollow" href="https://cran.r-project.org/web/packages/humaniformat/index.html" target="_blank"><code>humaniformat</code> package</a>.</p>
<h1>Create the compliments</h1>
<p>Here I need animal names and praising adjectives for a pretty frivolous use case. Now sometimes you could want to randomly draw words to make identifiers for, say, participants in your epidemiological study because that’d be easier to deal with than numbers. The <a rel="nofollow" href="https://github.com/richfitz/ids" target="_blank"><code>ids</code> package</a> actually provides human readable identifiers in the style <code></code>