Description Usage Arguments Details Examples
A wrapper for weight_wwc for CSV file input/output
1  | weight_csv(inputfile, outputpath = "./wwcresults.csv", ...)
 | 
inputfile | 
 A file containing the input survey data. Either a path to a 
file, a connection, or literal data (either a single string or a raw vector). 
Files starting with   | 
outputpath | 
 Path to write a csv file of the output weighted results. 
The new file will contain the original survey data with 1 column added, 
  | 
... | 
 Arguments to be passed to   | 
See weight_wwc for more details on the weighting algorithm
arguments
1 2 3  | tmp <- tempfile() 
weight_csv(system.file("extdata/examplesurvey.csv", package = "WWC"), tmp,
     sex, raceethnicity)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.