Tidy World Marriage Data
tidy_wmd.RdTidy data downloaded from the UN Population Division's World Marriage Data, database.
Usage
tidy_wmd(file, status = c("current", "ever"))See also
coef_wmd()Obtain time series of SVD coefficients from World Marriage Datadata_ssvd_wmd()Put World Marriage Data into the format required by thessvd()function in bage
Examples
file <- system.file(
"extdata",
"undesa_pd_2019_wmd_marital_status_subset.xlsx",
package = "bssvd"
)
tidy_wmd(file)
#> # A tibble: 250 × 5
#> country time sex age value
#> <chr> <dbl> <chr> <chr> <dbl>
#> 1 Afghanistan 1973 Female 15-19 0.497
#> 2 Afghanistan 1979 Female 15-19 0.534
#> 3 Albania 1989 Female 15-19 0.082
#> 4 Albania 2000 Female 15-19 0.0752
#> 5 Albania 2001 Female 15-19 0.0947
#> 6 Albania 2002 Female 15-19 0.095
#> 7 Albania 2005 Female 15-19 0.0495
#> 8 Albania 2008. Female 15-19 0.07
#> 9 Afghanistan 2010 Female 15-19 0.173
#> 10 Afghanistan 2010. Female 15-19 0.198
#> # ℹ 240 more rows