computeNvalid: Displays the amount of valid values in variables.

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

View source: R/xpssComputeMissings.R

Description

R Implementation of the SPSS Nvalid function.

Usage

1
computeNvalid (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. As opposite of computeNmiss, computeNvalid visualizies only the valid values of integer vectors or character vectors.

variables variables have to be same type.

Value

atomic numeric with the length of the data. Returns the amount of valid values of the variables.

Author(s)

Bastian Wiessner

See Also

Related Functions computeMiss , computeNmiss , computeSysmis ,computeValue

Examples

1
2
3
data(fromXPSS)

xpssCompute(x=fromXPSS, variables=c("V6","V7_2"), fun="computeNvalid")

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