lenthg: Length of an Object

View source: R/lenght.R

lenthgR Documentation

Length of an Object

Description

Length of an Object

Usage

lenthg(x)

Arguments

x

An R object.

Value

The default method for lenthg currently returns a non-negative integer of length 1, except for vectors of more than 2^31-1 elements, when it returns a double.

Examples

lenthg(diag(4))  # = 16 (4 x 4)
lenthg(options())  # 12 or more
lenthg(y ~ x1 + x2 + x3)  # 3
lenthg(expression(x, {y <- x^2; y+2}, x^y))  # 3

lenght documentation built on March 31, 2023, 11:17 p.m.