length_nona: Length of an Object (Excluding Missing Values)

Description Usage Arguments Value Examples

Description

Length of an Object (Excluding Missing Values)

Usage

1
length_nona(x, na.rm = TRUE)

Arguments

x

Array of numeric data.

na.rm

logical. Should missing values (including NaN) be removed?

Value

A number representing the number of non-missing values in an array.

Examples

1
2
3
4
length_nona(nycflights13::flights$air_time)

### Compare this result to the following
length(nycflights13::flights$air_time)

ingels11/TableRExtracts documentation built on May 23, 2019, 8:50 a.m.