Fix a typo (#254)

This commit is contained in:
harrismcgehee 2016-08-15 08:33:44 -04:00 committed by Hadley Wickham
parent 8bc81d71b1
commit 3c0f712b62
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ Some older functions don't work with tibbles. If you encounter one of these func
class(as.data.frame(tb))
```
The main reason that some older functions don't work with tibble is the `[` function. We don't use `[` much in this book much because `dplyr::filter()` and `dplyr::select()` allow you to solve the same problems with clearer code (but you will learn a little about it in [vector subsetting](#vector-subsetting). With base R data frames, `[` sometimes returns a data frame, and sometimes returns a vector. With tibbles, `[` always returns a nother tibble.
The main reason that some older functions don't work with tibble is the `[` function. We don't use `[` much in this book much because `dplyr::filter()` and `dplyr::select()` allow you to solve the same problems with clearer code (but you will learn a little about it in [vector subsetting](#vector-subsetting). With base R data frames, `[` sometimes returns a data frame, and sometimes returns a vector. With tibbles, `[` always returns another tibble.
## Exercises