Fix a typo (#254)
This commit is contained in:
parent
8bc81d71b1
commit
3c0f712b62
|
@ -147,7 +147,7 @@ Some older functions don't work with tibbles. If you encounter one of these func
|
||||||
class(as.data.frame(tb))
|
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
|
## Exercises
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue