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 20, 2017, 2:11 a.m.

Search within the translateSPSS2R package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.