GenEst (version 1.2.4)

trueLength: Get the length of real (non-NA) things

Description

Length of non-missing (non-NA) values in a vector.

Usage

trueLength(x)

Arguments

x

Vector of values, some of which many be NA.

Value

Integer count of how many non-NA values in x.

Examples

Run this code
# NOT RUN {
  x <- c(1, 2, NA, 3)
  length(x)
  trueLength(x)

# }

Run the code above in your browser using DataCamp Workspace