Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

of

NY R Conference talk Slide 1 NY R Conference talk Slide 2 NY R Conference talk Slide 3 NY R Conference talk Slide 4 NY R Conference talk Slide 5 NY R Conference talk Slide 6 NY R Conference talk Slide 7 NY R Conference talk Slide 8 NY R Conference talk Slide 9 NY R Conference talk Slide 10 NY R Conference talk Slide 11 NY R Conference talk Slide 12 NY R Conference talk Slide 13 NY R Conference talk Slide 14 NY R Conference talk Slide 15 NY R Conference talk Slide 16 NY R Conference talk Slide 17 NY R Conference talk Slide 18 NY R Conference talk Slide 19 NY R Conference talk Slide 20 NY R Conference talk Slide 21 NY R Conference talk Slide 22 NY R Conference talk Slide 23 NY R Conference talk Slide 24 NY R Conference talk Slide 25 NY R Conference talk Slide 26 NY R Conference talk Slide 27 NY R Conference talk Slide 28 NY R Conference talk Slide 29 NY R Conference talk Slide 30 NY R Conference talk Slide 31 NY R Conference talk Slide 32 NY R Conference talk Slide 33 NY R Conference talk Slide 34 NY R Conference talk Slide 35 NY R Conference talk Slide 36 NY R Conference talk Slide 37 NY R Conference talk Slide 38 NY R Conference talk Slide 39 NY R Conference talk Slide 40 NY R Conference talk Slide 41 NY R Conference talk Slide 42 NY R Conference talk Slide 43 NY R Conference talk Slide 44 NY R Conference talk Slide 45
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

0 Likes

Share

Download to read offline

NY R Conference talk

Download to read offline

My talk in April 2018 at the NY R Conference on the Lesser Known Stars of the Tidyverse.

Related Books

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

NY R Conference talk

  1. 1. The Lesser Known s of the Tidyverse Emily Robinson @robinson_es
  2. 2. About Me ➔ R User ~ 6 years ➔ Data Scientist at DataCamp ➔ Enjoy talking about: ◆ A/B testing ◆ Building and finding data science community ◆ R
  3. 3. Talk Goals
  4. 4. 1. Keep you hip to the lingo
  5. 5. 2. Stop you from doing this ….
  6. 6. …. by sharing useful functions
  7. 7. 3. Point you to resources
  8. 8. The Tidyverse
  9. 9. Coherent system of packages for data manipulation, exploration, and visualization that share a common design philosophy
  10. 10. Tidyverse = ?
  11. 11. Tidyverse = !
  12. 12. Tidyverse != Hadleyverse
  13. 13. Tidyverse != Hadleyverse Many other contributors
  14. 14. Demo
  15. 15. Some steps of a data analysis workflow ➔ View dataset in console ➔ Inspect missing values ➔ Examine some columns ➔ Make a plot ➔ Do something cool and new!
  16. 16. Problem: it takes over the console Step 1: print your dataset!
  17. 17. Prints only 10 rows and the columns that fit on the screen Solution: as_tibble()
  18. 18. Problem: how do you do this for every column? Step 2: examine your NAs
  19. 19. Problem: missing values aren’t actually NA Answer: purrr::map_df() to “map” function over each column
  20. 20. Solution: na_if() to replace certain values with NA
  21. 21. Problem: how I can I do this quickly? + Skimr Solution: dplyr::select_if() + skimr::skim() Step 3: examine your numeric columns
  22. 22. Problem: it has multiple answers in each row Step 4: examine a single column
  23. 23. Solution: stringr::str_split() …
  24. 24. Solution: stringr::str_split() and tidyr::unnest() +
  25. 25. Problem: it’s a mess Step 5: make a plot!
  26. 26. Solution: coord_flip … But they’re not ordered
  27. 27. + forcats::fct_reorder
  28. 28. Final step: do something cool and new! Problem:
  29. 29. One solution: make a minimal reproducible example +
  30. 30. Part 0 (optional): use tribble() to make a toy dataset
  31. 31. Part 1: Use reprex() to find any problems Credit: Nick Tiernay, https://www.njtierney.com/post/2017/01/11/magic-reprex/
  32. 32. Part 2: Use reprex() to post your question or issue Credit: Nick Tiernay, https://www.njtierney.com/post/2017/01/11/magic-reprex/
  33. 33. Review stringr::str_split tidyr::unnest coord_flip() forcats::fct_reorder tibble::tribble reprex::reprex tibble::as_tibble purrr:map_df dplyr::na_if dplyr::select_if skimr::skim
  34. 34. Resources
  35. 35. R4ds.had.co.nz
  36. 36. #rstats twitter
  37. 37. #rstats twitter
  38. 38. Rstudio.com/resources/cheatsheets
  39. 39. DataCamp.com
  40. 40. Learn | https://datacamp.com/courses
  41. 41. Conclusion
  42. 42. The tidyverse Come for the stickers and package names … Stay for the friendly community and happy workflow
  43. 43. Thank you! tiny.cc/nyrtalk hookedondata.org @robinson_es

My talk in April 2018 at the NY R Conference on the Lesser Known Stars of the Tidyverse.

Views

Total views

665

On Slideshare

0

From embeds

0

Number of embeds

0

Actions

Downloads

27

Shares

0

Comments

0

Likes

0

×