Intermezzo: missing values (4)
Notice the effect of names_expand
in pivot_wider()
!
daily |>
pivot_wider(
names_from = day,
values_from = value,
names_expand = TRUE
)
## # A tibble: 1 × 7
## Mon Tue Wed Thu Fri Sat Sun
## <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 5 2 NA 3 1 NA NA