lengths: Backport of lengths for R < 3.2.0

Description Usage Examples

View source: R/lengths.R

Description

See the original description in base::lengths.

Usage

1
lengths(x, use.names = TRUE)

Examples

1
2
3
4
5
# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_lengths = getFromNamespace("lengths", "backports")

bp_lengths(list(1:3, 2))

backports documentation built on May 23, 2017, 9:13 a.m.

Search within the backports package
Search all R packages, documentation and source code