Merge branch 'master' of github.com:hadley/r4ds

# Conflicts:
#	factors.Rmd
This commit is contained in:
hadley
2016-11-10 11:10:30 -06:00
22 changed files with 72 additions and 75 deletions

View File

@@ -277,7 +277,7 @@ There are a number of helper functions you can use within `select()`:
See `?select` for more details.
`select()` can be used to rename variables, but it's rarely useful because it drops all the variables not explicitly mentioned. Instead, use `rename()`, which is a variant of `select()` that keeps all the variables that aren't explicitly mentioned:
`select()` can be used to rename variables, but it's rarely useful because it drops all of the variables not explicitly mentioned. Instead, use `rename()`, which is a variant of `select()` that keeps all the variables that aren't explicitly mentioned:
```{r}
rename(flights, tail_num = tailnum)