From 4de457b40847fe55d957b413823b7d8ebef35fb1 Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 3 May 2017 08:14:41 -0500 Subject: [PATCH] Non-syntactic reminder. Fixes #509 --- tidy.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidy.Rmd b/tidy.Rmd index 5d41fe3..d9aa996 100644 --- a/tidy.Rmd +++ b/tidy.Rmd @@ -148,7 +148,7 @@ table4a %>% gather(`1999`, `2000`, key = "year", value = "cases") ``` -The columns to gather are specified with `dplyr::select()` style notation. Here there are only two columns, so we list them individually. Note that "1999" and "2000" are non-syntactic names so we have to surround them in backticks. To refresh your memory of the other ways to select columns, see [select](#select). +The columns to gather are specified with `dplyr::select()` style notation. Here there are only two columns, so we list them individually. Note that "1999" and "2000" are non-syntactic names (because they don't start with a letter) so we have to surround them in backticks. To refresh your memory of the other ways to select columns, see [select](#select). ```{r tidy-gather, echo = FALSE, out.width = "100%", fig.cap = "Gathering `table4` into a tidy form."} knitr::include_graphics("images/tidy-9.png")