From 91e6e304b47a70a539915128e3ca3de4becdf7ca Mon Sep 17 00:00:00 2001 From: Todd Gerarden <38533138+tgerarden@users.noreply.github.com> Date: Mon, 6 Feb 2023 17:11:28 -0500 Subject: [PATCH] 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. --- data-tidy.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-tidy.qmd b/data-tidy.qmd index 5509b74..5708aa0 100644 --- a/data-tidy.qmd +++ b/data-tidy.qmd @@ -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" ) ```