update tidyverse loadings (#754)

Update to the tidyverse prerequsities for the strings and factors chapters. stringr and forcats now load with the core tidyverse.
This commit is contained in:
Jacek Kolacz 2020-01-15 13:40:22 -05:00 committed by Hadley Wickham
parent 1dd293436b
commit 6eb53ea069
2 changed files with 2 additions and 4 deletions

View File

@ -8,11 +8,10 @@ Historically, factors were much easier to work with than characters. As a result
### Prerequisites
To work with factors, we'll use the __forcats__ package, which provides tools for dealing with **cat**egorical variables (and it's an anagram of factors!). It provides a wide range of helpers for working with factors. forcats is not part of the core tidyverse, so we need to load it explicitly.
To work with factors, we'll use the __forcats__ package, which is part of the core tidyverse. It provides tools for dealing with **cat**egorical variables (and it's an anagram of factors!) using a wide range of helpers for working with factors.
```{r setup, message = FALSE}
library(tidyverse)
library(forcats)
```
### Learning more

View File

@ -6,11 +6,10 @@ This chapter introduces you to string manipulation in R. You'll learn the basics
### Prerequisites
This chapter will focus on the __stringr__ package for string manipulation. stringr is not part of the core tidyverse because you don't always have textual data, so we need to load it explicitly.
This chapter will focus on the __stringr__ package for string manipulation, which is part of the core tidyverse.
```{r setup, message = FALSE}
library(tidyverse)
library(stringr)
```
## String basics