reshapeCP: A function to reshape form data from ChangePond (Best Plus,...

Description Usage Arguments Examples

Description

This function reshapes form data downloaded from ChangePond

Usage

1
reshapeCP(form, NitemsInPanel, NitemsInModule, outName = NULL)

Arguments

form

Data frame of messy data downloaded from ChangePond

NitemsInPanel

vector indicating the number of items in each panel, in the order that panels appear

NitemsInModule

vector indicating the number of items in each module, in the order that modules appear in a panel

outName

output file name to be saved as .csv in working directory

Examples

1
2
3
4
5
6
7
8
##7 values for 7 panels. Each value represents the number of items in each panel.
ItemsInPanelsEPTS = c(3,3,4,5,5,5,10) 

##18 values for 18 modules. Each value represents the number of items in each module.
ItemsInModulesEPTS = c(3,3,2,2,1,2,2,1,2,2,1,2,2,2,2,2,2,2) 

##EPTform is the data frame that is downloaded from CP and read in as a data frame.
reshapeCP(EPTform, ItemsInPanelsEPTS, ItemsInModulesEPTS, outName = EPTform_clean)

faffr/reshapeCP documentation built on May 28, 2019, 8:38 p.m.