nonalength: Length of vector without 'NA'

Description Usage Arguments Examples

View source: R/nonalength.R

Description

Returns the length of a vector (character, numeric or other) taking out the NA values from it.

Usage

1
nonalength(given_vector)

Arguments

given_vector

a character, numeric or factor vector

Examples

1
2
3
4
5
6
v <- c(1, 3, 4)
length(v) == nonalength(v)

v_na <- c(1, 3, 4)
length(v)
nonalength(v)

Rekyt/divr documentation built on April 1, 2020, 5:35 a.m.