Displays the amount of valid values in variables.

Share:

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.