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 May 15, 2024, 1:32 p.m.