len: Length of an Object

Description Usage Arguments Details Value Author(s) Examples

Description

Get the length of vectors (including lists) and factors, and of any other object for which a method has been defined.

Usage

1

Arguments

...

object

Details

len() cannot reset the length of a vector, while length() could.

Value

For vectors (including lists) and factors the length is the number of elements. For an environment it is the number of objects in the environment, and NULL has length 0. For expressions and pairlists (including language objects and dotlists) it is the length of the pairlist chain. All other objects (including functions) have length one: note that for functions this differs from S.

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu

Examples

1
len(c(1:20))


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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.