Correct `tidyr::unnamed_wider` (#1061)

This commit is contained in:
Jeffrey Stevens 2022-08-15 08:50:31 -05:00 committed by GitHub
parent 47e9f54a39
commit 9d398b7efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 |>