Learn R Programming

tempR (version 0.10.1.1)

lengthwhichis.na: Count observations with missing data

Description

Count observations with missing data.

Usage

lengthwhichis.na(x)

Value

count of observations where data are missing

Arguments

x

vector data which may contain missings

Examples

Run this code
x <- c(rep(NA,18), rep(1,18), rep(0,10), rep(NA, 10))
lengthwhichis.na(x)

Run the code above in your browser using DataLab