Learn R Programming

globals (version 0.19.0)

.length: Gets the length of an object without dispatching

Description

Gets the length of an object without dispatching

Usage

.length(x)

Value

A non-negative integer.

Arguments

x

Any R object.

Details

This function returns length(unclass(x)), but avoids calling unclass(x) when the object isn't classed.

See Also

.subset() and .subset2().