From 9d398b7efecc3ed2c75c749fa705c932ffbe187e Mon Sep 17 00:00:00 2001 From: Jeffrey Stevens <51374986+JeffreyRStevens@users.noreply.github.com> Date: Mon, 15 Aug 2022 08:50:31 -0500 Subject: [PATCH] Correct `tidyr::unnamed_wider` (#1061) --- rectangling.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rectangling.qmd b/rectangling.qmd index c1f02d6..d5114b5 100644 --- a/rectangling.qmd +++ b/rectangling.qmd @@ -243,7 +243,7 @@ df2 |> unnest_wider(y, names_sep = "_") ``` -You'll notice that `unnested_wider()`, much like `pivot_wider()`, turns implicit missing values in to explicit missing values. +You'll notice that `unnest_wider()`, much like `pivot_wider()`, turns implicit missing values in to explicit missing values. ### `unnest_longer()` @@ -397,7 +397,7 @@ repos |> ``` At first glance, it might seem like we haven't improved the situation: while we have more rows (176 instead of 6) each element of `json` is still a list. -However, there's an important difference: now each element is a **named** list so we can use `unnamed_wider()` to put each element into its own column: +However, there's an important difference: now each element is a **named** list so we can use `unnest_wider()` to put each element into its own column: ```{r} repos |>