Arrange estimates, MOEs, etc into wide format
make_wide(.data, ..., group = group)
A data frame
Bare column names of types of measures
Bare column name of group or category variable for spreading into wide data
A tibble/data frame in wide format
edu %>%
make_wide(estimate, moe, group = variable)
#> # A tibble: 5 × 7
#> name age25plus_estimate age25plus_moe bachelors_estimate bachelors_moe
#> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 Bethany 4013 148 994 174
#> 2 East Haven 21230 490 2998 361
#> 3 Hamden 40110 721 8587 669
#> 4 New Haven 81231 1252 12582 820
#> 5 West Haven 36031 765 4865 533
#> # … with 2 more variables: masters_estimate <dbl>, masters_moe <dbl>