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.