Typo fix (#1375)
This commit is contained in:
parent
13e2fa1691
commit
efd42b3292
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue