Displays the value of the variable cases.

Share:

Description

R implementation of the SPSS Value function.

Usage

1
computeValue(x, variables = NULL)

Arguments

x

a (non-empty) data.frame, data.table object or input data of class "xpssFrame".

variables

atomic character or character vector with the names of the variables.

Details

Performs a missing value operation. Adds the user-defined missing values of the variables in the existing dataset.

variables variables have to be same type.

Value

A "xpssFrame" object or (data frame) with implemented user-defined missing values.

NOTE: The whole dataset gets returned!

Author(s)

Bastian Wiessner

See Also

Related Functions computeMiss , computeNmiss , computeNvalid , computeSysmis

Examples

1
2
3
4
data(fromXPSS)

xpssCompute(x = fromXPSS, variables="V7_2", fun="computeValue")
xpssCompute(x = fromXPSS, variables="V7_2", fun="computeValue")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.