Learn R Programming

translateSPSS2R (version 1.0.0)

computeValue: Displays the value of the variable cases.

Description

R implementation of the SPSS Value function.

Usage

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.

Value

A "xpssFrame" object or (data frame) with implemented user-defined missing values.NOTE: The whole dataset gets returned!

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.

See Also

Related Functions computeMiss , computeNmiss , computeNvalid , computeSysmis

Examples

Run this code
data(fromXPSS)

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

Run the code above in your browser using DataLab