scoreData: Score Datasets with Several Kinds of Missing Values

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Score datasets with special consideration of missing values.

Usage

1
scoreData(dat, unitrecodings, units, verbose = FALSE)

Arguments

dat

A data frame

unitrecodings

A data frame with information about the scoring of units. See ‘Details’.

units

A data frame with unit information. See ‘Details’.

verbose

logical. If TRUE additional information is printed.

Details

This function is very similar to recodeData, but with a few defaults that are better suited for scoring. scoreData will give warnings when incomplete scoring informations are found. Values without scoring information will not be scored.

Examples of data frames unitrecodings and units can be found via data(inputList).

Value

A data frame with scored variables according to the specifications in unitrecodings and units.

Author(s)

Nicole Haag

See Also

recodeData, automateDataPreparation, inputList

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(inputDat)
data(inputList)

prepDat <- automateDataPreparation (inputList = inputList, datList = inputDat,
    readSpss = FALSE, checkData=FALSE, mergeData = TRUE, recodeData=TRUE, 
    aggregateData=TRUE, scoreData= FALSE, writeSpss=FALSE, verbose = TRUE)
           
datSco <- scoreData(prepDat, inputList$unitRecodings, inputList$units, 
    verbose = TRUE)
str(datSco)

eatPrep documentation built on May 2, 2019, 5:20 p.m.

Related to scoreData in eatPrep...