Learn R Programming

translateSPSS2R (version 1.0.0)

computeNmiss: Displays the amount of missing values in variables.

Description

R implementation of the SPSS Nmiss function

Usage

computeNmiss(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 system- or user-defined missing values of the variables.

Details

Performs a missing value operation. computeNmiss displays the amount of system- and user-defined missing values of the variables. User-defined and system-defind missings values get handled as one type of missing value.

See Also

Related Functions computeMiss , computeNvalid , computeSysmis ,computeValue

Examples

Run this code
data(fromXPSS)

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

Run the code above in your browser using DataLab