From 50703875cc2d4a31575bb72e91cea23126399b82 Mon Sep 17 00:00:00 2001 From: funkybluehen <58856334+funkybluehen@users.noreply.github.com> Date: Fri, 26 Mar 2021 09:13:34 -0400 Subject: [PATCH] Update vectors.Rmd (#929) Section 20.4.5 Subsetting A small grammatical issue on line 329 (insert the letter 'a') --- vectors.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vectors.Rmd b/vectors.Rmd index b54b9b6..32c172d 100644 --- a/vectors.Rmd +++ b/vectors.Rmd @@ -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: