naz.omit {JWileymisc} | R Documentation |
Missing and Zero Character Omit
Description
Given a vector, exclude any missing values, not a number values, non finite values, and if a character class, any zero length strings.
Usage
naz.omit(x)
Arguments
x |
A vector to exclude missing, non finite or zero length strings from |
Value
a vector with missing/non finite/zero length strings omitted
Examples
## stats na.omit
stats::na.omit(c(1, NA, NaN))
stats::na.omit(c("test", "", NA_character_))
naz.omit(c(1, NA, NaN))
naz.omit(c(1L, NA))
naz.omit(c(1L, NA, Inf))
naz.omit(c("test", "", NA_character_))
[Package JWileymisc version 1.4.1 Index]