From efd42b329240566ceedd275e26373229bd1d3981 Mon Sep 17 00:00:00 2001 From: Tom Godfrey <47148509+thomasggodfrey@users.noreply.github.com> Date: Fri, 17 Mar 2023 12:06:54 +0000 Subject: [PATCH] Typo fix (#1375) --- data-tidy.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-tidy.qmd b/data-tidy.qmd index 9d07d38..91d8211 100644 --- a/data-tidy.qmd +++ b/data-tidy.qmd @@ -195,7 +195,7 @@ billboard |> After the data, there are three key arguments: - `cols` specifies which columns need to be pivoted, i.e. which columns aren't variables. This argument uses the same syntax as `select()` so here we could use `!c(artist, track, date.entered)` or `starts_with("wk")`. -- `names_to` names of the variable stored in the column names, we named that variable `week`. +- `names_to` names the variable stored in the column names, we named that variable `week`. - `values_to` names the variable stored in the cell values, we named that variable `rank`. Note that in the code `"week"` and `"rank"` are quoted because those are new variables we're creating, they don't yet exist in the data when we run the `pivot_longer()` call.