n_nna: Number of non-NAs

Description Usage Arguments Value Examples

Description

Counts the number of elements that are not NA in a vector

Usage

1
n_nna(vec)

Arguments

vec

Vector: a vector-like object

Value

Integer: number of non-NAs

Examples

1
2
n_nna(c(NA, 9, 10))
n_nna(c('b', 'c', NA))

statech/CommonPlots documentation built on May 6, 2019, 1:32 a.m.