The purrr package map functions in the Tidyverse; Learn R Video 11

Описание к видео The purrr package map functions in the Tidyverse; Learn R Video 11

Do you want to learn to program in R? If you're a beginner, you're in the right place! This is the eleventh video in an introductory series that will teach you to program and analyze data in R. This series of videos is suitable for beginners or experienced programmers or data analysts who want to learn R. In this video we continue learning about the Tidyverse with the map functions in the purrr package, with a focus on how to write functions to work with different map inputs and outputs. Let's have fun learning to program with R!

The auto-graded exercises that go with this video can be downloaded here:
https://github.com/ProfessorBurke/REx...
(Read the readme file and then download or fork the Video11-map folder to use in RStudio.)

Do you want a great book to go along with these videos? You might find it helpful to read chapter 4 (The tidyverse in case the chapter has moved) in Introduction to Data Science: Data Analysis and Prediction Algorithms with R by Rafael A. Irizarry:
http://rafalab.dfci.harvard.edu/dsboo...

Coming from a programming background, one of the most helpful R books that I've read is The art of R programming: A tour of statistical software design, by Norman Matloff*:
https://amzn.to/3YCsQZD

And of course, the ultimate source on the Tidyverse itself is Hadley Wickham! I urge you to read his book:
https://r4ds.hadley.nz/

Here is the link to Rebecca Barter's blog post about the map functions:
https://www.rebeccabarter.com/blog/20...

The first R video is here:
   • R Basics: Math, Vectors, Variables, a...  

Here is the earlier video on apply:
   • Writing loops and using lapply in R; ...  

The introduction to R playlist is here:
   • R Basics: Math, Vectors, Variables, a...  

Download and install R:
https://www.r-project.org/

Download and install RStudio:
https://posit.co/downloads/

Hadley Wickham's R style guide:
http://adv-r.had.co.nz/Style.html

Data that is used in this video is from:
Mark, Skip and Cingranelli, David and Filippov, Mikhail and Richards, David L., The CIRIGHTS Data Project Scoring Manual V2.11.06.23 (November 6, 2023). Available at SSRN: https://ssrn.com/abstract=4625036 or http://dx.doi.org/10.2139/ssrn.4625036
Retrieved from:
https://cirights.com/

The github repository with all of the code examples for the introductory programming in R videos is here:
https://github.com/ProfessorBurke/REx...

*As an Amazon Associate I earn from qualifying purchases. Your purchases help me continue to bring you content!

The R Logo is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license (CC-BY-SA 4.0). The logo was scaled.
https://creativecommons.org/licenses/...

Thumbnail image generated by NightCafe and edited in Photoshop.

00:00 Welcome!
00:28 Overview of the map functions and the data set
03:14 map_dbl with a vector input
07:09 map_dbl with a dataframe (tibble) input
09:31 map_df with a vector input
12:13 map_df with a list input

Комментарии

Информация по комментариям в разработке