From 6eb53ea069cc676a9e95e24a825e329595fa96f9 Mon Sep 17 00:00:00 2001 From: Jacek Kolacz <40837662+jkolacz@users.noreply.github.com> Date: Wed, 15 Jan 2020 13:40:22 -0500 Subject: [PATCH] update tidyverse loadings (#754) Update to the tidyverse prerequsities for the strings and factors chapters. stringr and forcats now load with the core tidyverse. --- factors.Rmd | 3 +-- strings.Rmd | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/factors.Rmd b/factors.Rmd index 4863187..2f42a11 100644 --- a/factors.Rmd +++ b/factors.Rmd @@ -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 diff --git a/strings.Rmd b/strings.Rmd index 84c697e..5e12aeb 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -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