length2: New version of length which can handle NA's

View source: R/summarySE.R

length2R Documentation

New version of length which can handle NA's

Description

New version of length which can handle NA's

Usage

length2(x, na.rm = FALSE)

Arguments

x

a vector

na.rm

if TRUE does not acount for NA's when taking the length of x. Defaults to FALSE which has the same behaviour as lenght.

Value

an integer of the length of x accounting for NAs or not.


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.