From 9b74249f26a42b6985f7deacf560806406674f72 Mon Sep 17 00:00:00 2001 From: Mine Cetinkaya-Rundel Date: Wed, 12 Apr 2023 20:07:41 -0400 Subject: [PATCH] Update data-tidy.qmd --- data-tidy.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-tidy.qmd b/data-tidy.qmd index c8f1295..122043c 100644 --- a/data-tidy.qmd +++ b/data-tidy.qmd @@ -435,12 +435,12 @@ When you use `".value"` in `names_to`, the column names in the input contribute #| Pivoting with `names_to = c(".value", "num")` splits the column names #| into two components: the first part determines the output column #| name (`x` or `y`), and the second part determines the value of the -#| `id` column. +#| `num` column. #| fig-alt: > #| A diagram that uses color to illustrate how the special ".value" #| sentinel works. The input has names "x_1", "x_2", "y_1", and "y_2", #| and we want to use the first component ("x", "y") as a variable name -#| and the second ("1", "2") as the value for a new "id" column. +#| and the second ("1", "2") as the value for a new "num" column. knitr::include_graphics("diagrams/tidy-data/names-and-values.png", dpi = 270) ```