automateDataPreparation {eatPrep} | R Documentation |
This function facilitates automated data preparation and wraps most functions from the eatPrep
package.
automateDataPreparation(datList = NULL, inputList, path = NULL, readSpss, checkData, mergeData, recodeData, recodeMnr = FALSE, aggregateData, scoreData, writeSpss, collapseMissings = FALSE, filedat = "mydata.txt", filesps = "readmydata.sps", breaks=NULL, nMbi = 2, rotation.id = NULL, suppressErr = FALSE, recodeErr = "mci", aggregatemissings = NULL, rename = TRUE, recodedData = TRUE, correctDigits=FALSE, truncateSpaceChar = TRUE, newID = NULL, oldIDs = NULL, missing.rule = list(mvi = 0, mnr = 0, mci = NA, mbd = NA, mir = 0, mbi = 0), verbose=FALSE)
datList |
A list of data frames (see |
inputList |
A list of data frames containing neccessary information for data preparaton (see |
path |
A character vector containing the path required by |
readSpss |
Logical: If |
checkData |
Logical: If |
mergeData |
Logical: If |
recodeData |
Logical: If |
recodeMnr |
Logical: If |
aggregateData |
Logical: If |
scoreData |
Logical: If |
collapseMissings |
Logical: If |
writeSpss |
Logical: If |
filedat |
a character string containing the name of the output data file for |
filesps |
a character string containing the name of the output syntax file for |
breaks |
Numeric vector passed on to function |
nMbi |
Numeric vector of length 1 passed on to function |
rotation.id |
Character vector of length 1 passed on to function |
suppressErr |
Logical passed on to function |
recodeErr |
Character vector of length 1 passed on to function |
.
missing.rule |
A named list with definitions how to recode the different types of missings in the dataset. If |
aggregatemissings |
A symmetrical n x n matrix or a data frame from |
rename |
Logical passed on to function |
recodedData |
Logical passed on to function |
correctDigits |
logical. See |
truncateSpaceChar |
logical. See |
newID |
A character string containing the case IDs name in the final data frame. Default
is |
oldIDs |
A vector of character strings containing the IDs names in the original SPSS datasets.
Default is as specified in |
verbose |
Logical: If |
A data frame resulting from the final data preparation step.
Karoline Sachse
data(inputList) data(inputDat) preparedData <- automateDataPreparation(inputList = inputList, datList = inputDat, path = "c:/temp/test_eat", readSpss = FALSE, checkData = TRUE, mergeData = TRUE, recodeData = TRUE, recodeMnr = TRUE, breaks = c(1,2), aggregateData = TRUE, scoreData = TRUE, writeSpss = FALSE, verbose = TRUE)