The following R code will download and unzip the data in your current working directory if you wish to follow along. We visited Yahoo Finance on 13 April 2017 and downloaded about three weeks of historical data for three companies: Boeing, Johnson & Johnson and IBM. We use some real world data and replicate what purrr does in base R so we have a better understanding of what’s going on. The purpose of this article is to provide a short introduction to purrr, focusing on just a handful of functions. We think this is the most thorough and extensive introduction to the purrr package currently available (at least at the time of this writing.) Wickham is one of the authors of the purrr package and he spends a good deal of the chapter clearly explaining how it works. If you’re wondering what exactly the purrr package does, then this blog post is for you.īefore we get started, we should mention the Iteration chapter in R for Data Science by Garrett Grolemund and Hadley Wickham.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |