2.2 Recommended packages
2.2.1 Tidyverse
The tidyverse is an opinionated collection of R packages designed for data science. All packages share an underlying design philosophy, grammar, and data structures. Installing the tidyverse will install all tidyverse packages. To see a full list of tidyverse packages, see https://www.tidyverse.org/packages/
Core tidyverse - Loading the tidyverse using library(tidyverse) will load 8 core packages from the tidyverse that you are likely to use in everyday data analyses. These packages are:
ggplot2 - ggplot2 is a system for creating graphics, based on The Grammar of Graphics (gg). ggplot2 is a powerful tool for visualizing data.
dplyr - dplyr provides a grammar of data manipulation, providing a consistent set of verbs that solve the most common data manipulation challenges. These include select, filter, mutate, summarize, etc.
tidyr - tidyr provides a set of functions that help you get to tidy data. Tidy data is data with a consistent form where every variable goes in a column and every observation is a row.
readr - readr provides a fast and friendly way to read rectangular data (like csv, tsv, and fwf). It is designed to flexibly parse many types of data.
tibble - tibble provides opinionated data frames that make working in the tidyverse a little easier.
stringr - stringr provides a cohesive set of functions designed to make working with strings as easy as possible.
forcats - forcats provides a suite of useful tools that solve common problems with factors, which R uses to handle categorical variables.
purrr - purrr enhances R’s functional programming toolkit by providing a complete and consistent set of tools for working with functions and vectors. Once you master the basic concepts, purrr allows you to replace many for loops with code that is ieasier to write and more expressive