collate_csv: collate_csv

View source: R/collate_csv.R

collate_csvR Documentation

collate_csv

Description

Collates dataframes of the form created by surveyPivot across multiple years

Usage

collate_csv(directory, group, response = "Value")

Arguments

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

Details

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").


AMGold99/piperr documentation built on March 29, 2022, 9:46 a.m.