From 884c561f621b803304124e8130d450ab7e1bc0d4 Mon Sep 17 00:00:00 2001 From: Brett Klamer Date: Fri, 26 Aug 2016 12:50:29 -0400 Subject: [PATCH] Fixing typos in vectors.Rmd (#319) --- vectors.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vectors.Rmd b/vectors.Rmd index 7f9c556..97a9f86 100644 --- a/vectors.Rmd +++ b/vectors.Rmd @@ -365,7 +365,7 @@ So far we've used `dplyr::filter()` to filter the rows in a tibble. `filter()` o all the columns, and `x[, -1]` selects all rows and all columns except the first. -To learn more about the applications of subseting, reading the "Subsetting" chapter of _Advanced R_: . +To learn more about the applications of subsetting, reading the "Subsetting" chapter of _Advanced R_: . There is an important variation of `[` called `[[`. `[[` only ever extracts a single element, and always drops names. It's a good idea to use it whenever you want to make it clear that you're extracting a single item, as in a for loop. The distinction between `[` and `[[` is most important for lists, as we'll see shortly.