Use tidyverse package

Fixes #451
This commit is contained in:
hadley
2016-10-03 12:30:24 -05:00
parent 42cffaf5b3
commit 7768955fe6
17 changed files with 76 additions and 98 deletions

View File

@@ -6,15 +6,14 @@ Visualisation is an important tool for insight generation, but it is rare that y
### Prerequisites
In this chapter we're going to focus on how to use the dplyr package. We'll illustrate the key ideas using data from the nycflights13 package, and use ggplot2 to help us understand the data.
In this chapter we're going to focus on how to use the dplyr package, another core member of the tidyverse. We'll illustrate the key ideas using data from the nycflights13 package, and use ggplot2 to help us understand the data.
```{r setup}
library(dplyr)
library(nycflights13)
library(ggplot2)
library(tidyverse)
```
Take careful note of the message that's printed when you load dplyr - it tells you that dplyr overwrites some functions in base R. If you want to use the base version of these functions after loading dplyr, you'll need to use their full names: `stats::filter()`, `base::intersect()`, etc.
Take careful note of the conflicts message that's printed when you load the tidyverse. It tells you that dplyr overwrites some functions in base R. If you want to use the base version of these functions after loading dplyr, you'll need to use their full names: `stats::filter()` and `stats::lag()`.
### nycflights13