@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user