computeValue: Displays the value of the variable cases.

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

View source: R/xpssComputeMissings.R

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")

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.