Learn R Programming

translateSPSS2R (version 1.0.0)

computeNvalid: Displays the amount of valid values in variables.

Description

R Implementation of the SPSS Nvalid function.

Usage

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.

Value

atomic numeric with the length of the data. Returns the amount of valid values 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.

See Also

Related Functions computeMiss , computeNmiss , computeSysmis ,computeValue

Examples

Run this code
data(fromXPSS)

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

Run the code above in your browser using DataLab