data-raw/write_csv.R

### script to write example csv to be read in weight_csv ----------------------

library(readr)
library(WWC)
write_csv(texassurvey, "inst/extdata/examplesurvey.csv")

write_csv(weight_wwc(twostatessurvey, sex, raceethnicity),
          "inst/extdata/weightedsurvey.csv")

write_csv(weight_wwc(tinysurvey, sex, raceethnicity),
          "inst/extdata/tinysurvey.csv")
heathermkrause/WWC documentation built on May 17, 2019, 3:20 p.m.