| Line 17... |
Line 17... |
| 17 |
The length of \code{x} as an \code{\link{integer}} of length 1,
|
17 |
The length of \code{x} as an \code{\link{integer}} of length 1,
|
| 18 |
if \code{x} is (or can be coerced to) a vector or list. Otherwise,
|
18 |
if \code{x} is (or can be coerced to) a vector or list. Otherwise,
|
| 19 |
\code{length} returns \code{NA}.
|
19 |
\code{length} returns \code{NA}.
|
| 20 |
}
|
20 |
}
|
| 21 |
\details{
|
21 |
\details{
|
| 22 |
\code{length} is generic: you can write methods to handle of specific
|
22 |
\code{length} is generic: you can write methods to handle specific
|
| 23 |
classes of objects, see \link{InternalMethods}.
|
23 |
classes of objects, see \link{InternalMethods}.
|
| 24 |
|
24 |
|
| 25 |
The replacement form can be used to reset the length of a vector. If
|
25 |
The replacement form can be used to reset the length of a vector. If
|
| 26 |
a vector is shortened, extra values are discarded and when a vector is
|
26 |
a vector is shortened, extra values are discarded and when a vector is
|
| 27 |
lengthened, it is padded out to its new length with \code{\link{NA}}s.
|
27 |
lengthened, it is padded out to its new length with \code{\link{NA}}s.
|