Returns sample size

N(x, na.rm = FALSE)

Arguments

x

numeric value

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

return the number of real values.

Examples

example=c(rnorm(12),NA,NA,NA)
N(example);# versus length(example)
N.obs(example)
#> [1] 12