Ghement Statistical Consulting Company Ltd.
  Home
Ghement Statistical Consulting Company Ltd.
301-7031 Blundell Road
Richmond, British Columbia
Canada, V6Y 1J5
Tel: 604-767-1250
Fax: 604-270-3922
E-Mail: info@ghement.ca

© Isabella R. Ghement 2018






























































 

Purrrfect purrr resolution for 2018


The purrr resolution for 2018 - learn at least one purrr function per week - is officially launched with encouragement and inspiration from Christopher Peters (@statwonk), Hadley Wickham (@hadleywickham) and Charles T. Gray (@cantabile).

If you are wondering what purrr is, then head on over to the R Studio blog for a quick overview. In a nutshell, purrr is an R package created by R Studio's Hadley Wickham and Lionel Henry, which includes a host of functions intended to make programming in R more efficient.

All purrr enthusiasts are welcome to join us for this resolution. On Twitter, you can find us via the hashtags #purrrResolution, #purrr and #rstats. We also have an e-mail list, which you can join by e-mailing isabella@ghement.ca. The e-mail list was the brain child of Orlando Mezquita (@OrlandoMezquita).


Week 1: modify_depth()


Week 1 of our purrr resolution introduces us to the modify_depth() function from the purrr package. This function only modifies elements at a given level of a nested data structure.

  1. An example set up by Isabella Ghement (@IsabellaGhement) illustrating one possible use of modify_depth().
  2. Solutions to the question posed at the end of the above example.
  3. An awesome blog post created by Bruno Rodriques, which further showcases the versatility of modify_depth().


Week 2: pmap()


Week 2 of our purrr resolution introduces us to the pmap() function from the purrr package. This function allows for iteration in parallel over lists stored in a list of lists.

  1. Excellent blog post by Christopher Peters (@statwonk) on using the pmap() function for mapping functions with multiple arguments.
  2. Some parting thoughts on pmap() by Isabella Ghement (@IsabellaGhement).


Week 3: set_names()


Resources


 

Home | About Us | Consulting | Training | Case Studies | Testimonials | Resources | Contact Us | Privacy Policy