Updated: 📆 2018-10-06.
🎉🐱 purrr-tiest cheat sheet
Purrr royal decree (ok, I’ll stop with the 🐱 puns now), the purrr
📦 now has its very own official RStudio cheat sheet: Apply Functions Cheat Sheet
The
purrr
package makes it easy to work with lists and functions. This cheatsheet will remind you how to manipulate lists with purrr as well as how to apply functions iteratively to each element of a list or vector. The back of the cheatsheet explains how to work with list-columns. With list columns, you can use a simple data frame to organize any collection of objects in R.
So, I thought we’d celebrate with a bit of a purrr
🐦 tweet roundup:
Iteration of functions with purrr by Lise Vaudor
Once again, 👩🏻🎤 @LVaudor nails the visuals ⇨ 🤔💡
— Mara Averick (@dataandme) February 13, 2018
"Iteration of functions with purrr" https://t.co/80lm7JzLPr #rstats #purrr #tidyverse pic.twitter.com/fdNrKySggY
purrr tutorial: lessons and examples by Jenny Bryan
💥back to school must-have: "purrr tutorials: lessons, examples, & more" by @JennyBryan https://t.co/zFZ3WnRjKZ #rstats #purrr pic.twitter.com/1wCV8kTYW6
— Mara Averick (@dataandme) August 27, 2017
Introduction to purrr by Jennifer Thompson
🐈 Love the breakdown of map_* funs!
— Mara Averick (@dataandme) March 20, 2018
📽 "RLadies Intro to purrr" by @jent103 https://t.co/VK4ox97cni #rstats #purrr pic.twitter.com/OTXIZcoOOz
Labeling Data with purrr by Jason Becker
Handy for FIPS & other code fields: “Labeling Data with purrr” by @jsonbecker https://t.co/DZi3S7eBCN #rstats #purrr pic.twitter.com/I3an7byFy5
— Mara Averick (@dataandme) March 10, 2017
Measuring Gobbledygook by Julia Silge
Assessing readability with purrr and tidytext: “Measuring Gobbledygook” by @juliasilge https://t.co/eyZWrHJfpf #rstats #purrr pic.twitter.com/hMpx3MgAGz
— Mara Averick (@dataandme) November 25, 2016
Use quick formula functions in purrr::map
(+ base vs tidtyverse idiom comparisons/examples) by Bob Rudis
"Use quick formula functions in purrr::map (+ base vs tidtyverse idiom comparisons/examples)" by @hrbrmstr https://t.co/kh1WK9CDEl #rstats pic.twitter.com/65kWU90Lhq
— Mara Averick (@dataandme) December 9, 2016
Make ggplot2 purrr by Bruno Rodrigues
Love the full-disclosure intro: “Make ggplot2 purrr” by @brodriguesco https://t.co/8CVEbCSR2C #rstats #ggplot2 #dataviz pic.twitter.com/lX4fRyp2JF
— Mara Averick (@dataandme) March 29, 2017
It’s lists all the way down by Bruno Rodrigues
😸📋 work it with purrr: "It's lists all the way down" ✏️ @brodriguesco https://t.co/DzD2ycsYwT #rstats #purrr pic.twitter.com/YA6HIJZGK4
— Mara Averick (@dataandme) January 4, 2018
There’s also It’s lists all the way down, part 2: We need to go deeper.
📋 nested lists, modify depth ⇨ to xlsx w/ purrr & rio:
— Mara Averick (@dataandme) January 6, 2018
"Lists all the way down, part 2: We need to go deeper" by @brodriguesco https://t.co/v87EYIPFE7 #rstats pic.twitter.com/tHBANpmPXM
Putting square pegs in round holes: Using list-cols in your dataframe by Jenny Bryan
🎉 repurrrsive's on CRAN! Let's celebrate 👯 w/ @JennyBryan's "Putting square pegs in round holes: Using list-cols..." https://t.co/gDCTOKFsxJ pic.twitter.com/qJg3Sr9oou
— Mara Averick (@dataandme) September 11, 2017
Managing many models with R by Hadley Wickham
Great @hadleywickham talk- modeling & making data visualizable: "Managing Many Models" https://t.co/qBRjsElKCw #rstats #purrr #dataviz pic.twitter.com/cKuMQUKnGh
— Mara Averick (@dataandme) November 25, 2016
The Many-Faced Future by Henrik Bengtsson
Fun with R's future 📦 & purrr: "The Many-Faced Future" by @henrikbengtsson https://t.co/xOIA88Boql #rstats #purrr pic.twitter.com/d1SsW30YQe
— Mara Averick (@dataandme) June 6, 2017
U.S. Drought Animations with the “Witch’s Brew” (purrr + broom + magick) by Bob Rudis
"US Drought Animations w 'Witch’s Brew' (purrr + broom + magick)" by @hrbrmstr https://t.co/xC89OQH7x8 #rstats #maps pic.twitter.com/VTPcbhZjqu
— Mara Averick (@dataandme) July 28, 2016
purrr workshop by Charlotte Wickham
ICYMI, code , slides & more from @CVWickham's #rstudioconf "purrr workshop" https://t.co/53ku3jlzms #rstats #purrr pic.twitter.com/44udoVuLEF
— Mara Averick (@dataandme) January 27, 2017
Pur(r)ify Your Carets by Rahul Sangole
🐱🥕 step-by-step modeling 👨💻: "Pur(r)ify Your Carets" by @rsangole https://t.co/3lTZZcMgTB #rstats #purrr #caret pic.twitter.com/hdrvGLPNHG
— Mara Averick (@dataandme) September 26, 2017
PURRRty PowerPoint with R by Len Kiefer
There’s also Purrrtier PowerPoint with R, which covers the use of rvg
for vector graphics.
🙌 step-by-step even just for grok-ing #purrr:
— Mara Averick (@dataandme) September 29, 2017
🐈 "PURRRty PowerPoint w/ R" by @lenkiefer https://t.co/Qtd6u5cjG9 #rstats pic.twitter.com/oQQ5h4o9c3
A Crazy Little Thing Called {purrr} - Part 1 : Web Mining by Colin Fay
😻 step-by-step
— Mara Averick (@dataandme) November 26, 2017
"A Crazy Little Thing Called {purrr} - Pt 1 : Web Mining" 🖊 @_ColinFay https://t.co/qzUWUGQG2w #rstats #purrr #tidyverse pic.twitter.com/WPi5z1h3VC
Now with part two: A Crazy Little Thing Called {purrr} - Part 2 : Text Wrangling
💫 post by @_ColinFay
— Mara Averick (@dataandme) November 30, 2017
"A Crazy Little Thing Called {purrr} - Pt 2 : Text Wrangling"https://t.co/Eoenx8wDUw #rstats #purrr #regex #tidytext pic.twitter.com/dl3pnSeox8
Part three (which, apparently, I neglected to tweet): A Crazy Little Thing Called {purrr} - Part 3 : Setting NA
Part four: A Crazy Little Thing Called {purrr} - Part 4: mappers
🐈🗺 what's up with purr::map?
— Mara Averick (@dataandme) December 13, 2017
& 🎣 {trycatchthis}
"Crazy Little Thing Called {#purrr} - Pt 4: mappers" by @_ColinFayhttps://t.co/XdFLerSAMB #rstats pic.twitter.com/9QeN4njjCw
Part five: A Crazy Little Thing Called {purrr} - Part 5: code optimization
😸 feat. compose() & partial()
— Mara Averick (@dataandme) December 23, 2017
"A Crazy Little Thing Called {purrr} - Pt 5: code optimization" ✏ @_ColinFay https://t.co/T4VRuxLnly #rstats #purrr pic.twitter.com/K9g6dUWmRp
And part six: A Crazy Little Thing Called {purrr} - Part 6 : doing statistics
Useful ⇨ "A Crazy Little Thing Called {purrr} - Pt 6 : doing statistics" ✍️ @_ColinFay https://t.co/QbeGdcmndQ #rstats #purrr
— Mara Averick (@dataandme) December 28, 2017
(How to) Write a purrr-like adverb by Colin Fay
😸 Master of purrrr tutorials, @_ColinFay, is at it again…
— Mara Averick (@dataandme) April 24, 2018
📝 "Write a purrr-like adverb" https://t.co/ABtBHtZkP0 (feat {attempt}) #rstats #purrr pic.twitter.com/gpUAi3U6ep
Reproducible Shiny App Development with Modules by Paul Campbell
Feat. 🐈×✨ (purrr × shiny): "Reproducible Shiny App Development with Modules" by @PaulCampbell91 https://t.co/5PocWNWDff #rstats #rshiny
— Mara Averick (@dataandme) January 5, 2018
Making many added variable plots with purrr and ggplot2 by Ariel Muldoon
😺📈purrr your preds…
— Mara Averick (@dataandme) February 14, 2018
"Making many added variable plots w/ purrr & #ggplot2" ✏️ @aosmith16 https://t.co/VSmsIavUr1 #rstats #dataviz pic.twitter.com/4lbk4v9Fpg
Calculating quantiles for groups with dplyr::summarize
and purrr::partial
by Tyler Bradley
😸 Lesser-known powers of purrr...
— Mara Averick (@dataandme) October 3, 2018
"Calculating quantiles for groups w/ dplyr::summarize and purrr::partial" ✏@tycbrad https://t.co/e9QXPHQaIw #rstats
Import a Directory of CSV Files at Once Using {purrr} and {readr} by Garrick Aden-Buie
😸 super handy code-through by @grrrck…
— Mara Averick (@dataandme) October 1, 2018
"Import a Directory of CSV Files at Once Using {purrr} and {readr}"https://t.co/18RShjyuC9 #rstats #purrr pic.twitter.com/SBaM3F35Hz
purrr
-fection?
This is a far cry from an exhaustive collection. If you’ve written something you think belongs here, send me a tweet 🐦 (@dataandme), or leave a comment. Blogging isn’t exactly the best format for updated lists, but I’m hoping to cook up a better method soon!