n_omit: Get the length of a vector of any type, omitting NAs

Description Usage Arguments Value Examples

View source: R/short_generic.R

Description

Calculate the length of a vector, but remove any NA values prior to calculating the length.

Usage

1
n_omit(x)

Arguments

x

a vector of any type

Value

The length of vector x ignoring any NA values.

Examples

1
2
fish_length = c(24.5, 16.8, 12.6, NA, 18.9)
n_omit(fish_length)

arestrom/remisc documentation built on July 16, 2020, 8:48 a.m.