Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 241
7.2.2 The Non-core Tidyverse
ОглавлениеBesides the core tidyverse packages – that are loaded with the command library(tidyverse)
, there are many other packages that are part of the tidyverse. In this section we will describe briefly the most important ones.
Importing data: readxl for .xls and .xlsx files) and haven for SPSS, Stata, and SAS data.8readxlxlsxxls
Wrangling data: lubridate for dates and date-times, hms for time-of-day values, blob for storing binary data. lubridate –for example – is discussed in Chapter 17.6 “Dates with lubridate” on page 314.lubridatehmsblob
Programming: purrr for iterating within R objects, magrittr provides the famous pipe, %>% command plus some more specialised piping operators (like %$% and %<>%), and glue provides an enhancement to the paste() function.purrrmagrittrpaste()glue
Modelling: this is not really ready, though recipes and rsample are already operational and show the direction this is taking. The aim is to replace modelr 9. Note that there is also the package broom that turns models into tidy data.recipesrsamplemodelrbroom