Update vectors.Rmd (#929)

Section 20.4.5 Subsetting
A small grammatical issue on line 329
(insert the letter 'a')
This commit is contained in:
funkybluehen 2021-03-26 09:13:34 -04:00 committed by GitHub
parent 631b93b1a4
commit 50703875cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ Named vectors are most useful for subsetting, described next.
### Subsetting {#vector-subsetting}
So far we've used `dplyr::filter()` to filter the rows in a tibble.
`filter()` only works with tibble, so we'll need new tool for vectors: `[`.
`filter()` only works with tibble, so we'll need a new tool for vectors: `[`.
`[` is the subsetting function, and is called like `x[a]`.
There are four types of things that you can subset a vector with: