This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/length.html
length {base}R Documentation

Length of a Vector or List

Description

If x is a vector or list length returns the length of x. Otherwise, length returns NA.

The second form above can be used to reset the length of a vector. If a vector is shortened, extra values are discarded and when a vector is lengthened, it is padded out to its new length with NAs.

Usage

length(x)
length(x) <- n

[Package base version 0.60 ]