Minor typo in 6 Data tidying (#1265)

Edited the second code chunk in section 6.3.2 so that pivoted variable names match Figures 6.3, 6.4, and 6.5 for clarity.
This commit is contained in:
Todd Gerarden 2023-02-06 17:11:28 -05:00 committed by GitHub
parent 78ca55ff52
commit 91e6e304b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -275,8 +275,8 @@ So we can tidy it with:
df |>
pivot_longer(
cols = col1:col2,
names_to = "names",
values_to = "values"
names_to = "name",
values_to = "value"
)
```