| Line 147... |
Line 147... |
| 147 |
when it will be a one-dimensional array.
|
147 |
when it will be a one-dimensional array.
|
| 148 |
|
148 |
|
| 149 |
The most common form of indexing a \eqn{k}-dimensional array is to
|
149 |
The most common form of indexing a \eqn{k}-dimensional array is to
|
| 150 |
specify \eqn{k} indices to \code{[}. As for vector indexing, the
|
150 |
specify \eqn{k} indices to \code{[}. As for vector indexing, the
|
| 151 |
indices can be numeric, logical, character, empty or even factor.
|
151 |
indices can be numeric, logical, character, empty or even factor.
|
| - |
|
152 |
And again, indexing by factors is equivalent to indexing by the
|
| - |
|
153 |
numeric codes, see \sQuote{Atomic vectors} above.
|
| - |
|
154 |
|
| 152 |
An empty index (a comma separated blank) indicates that all entries in
|
155 |
An empty index (a comma separated blank) indicates that all entries in
|
| 153 |
that dimension are selected.
|
156 |
that dimension are selected.
|
| 154 |
The argument \code{drop} applies to this form of indexing.
|
157 |
The argument \code{drop} applies to this form of indexing.
|
| 155 |
|
158 |
|
| 156 |
A third form of indexing is via a numeric matrix with the one column
|
159 |
A third form of indexing is via a numeric matrix with the one column
|