n_nna: Number of non-NAs

Description Usage Arguments Value Examples

View source: R/stat_utils.R

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 June 11, 2018, 10:17 a.m.