collate_csv | R Documentation |
Collates dataframes of the form created by surveyPivot across multiple years
collate_csv(directory, group, response = "Value")
directory |
File path specifying the directory containing all the csv files to be collated. |
group |
Character string specifying group variable name. Ex: "Ethnicity" |
response |
Character string specifying response variable name. Defaults to "Value." Must refer to a consistent name across all pivot tables to be collated |
Collates csv files from multiple years containing pivot tables created with surveyPivot. Variable names must be consistent across all files in the directory. The csv file names must contain their year (ex: "survey_2020.csv").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.