N: Returns sample size

View source: R/N.R

NR Documentation

Returns sample size

Description

Returns sample size

Usage

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)

SwampThingPaul/AnalystHelper documentation built on Nov. 3, 2024, 10:02 a.m.