Extract.fasp | R Documentation |
Extract a subset of a function array (an object of class
"fasp"
).
## S3 method for class 'fasp' x[I, J, drop=TRUE,...]
x |
A function array. An object of class |
I |
any valid expression for a subset of the row indices of the array. |
J |
any valid expression for a subset of the column indices of the array. |
drop |
Logical.
When the selected subset consists of only one cell of the array,
if |
... |
Ignored. |
A function array can be regarded as a matrix whose entries
are functions. See fasp.object
for an explanation of
function arrays.
This routine extracts a sub-array according to the usual conventions for matrix indexing.
A function array (of class "fasp"
).
Exceptionally, if the array has only one cell, and
if drop=TRUE
, then the result is a function value table
(class "fv"
).
fasp.object
# Lansing woods data - multitype points with 6 types a <- alltypes(lansing, 'K') # extract first three marks only b <- a[1:3,1:3] if(interactive()) {plot(b)} # subset of array pertaining to hickories h <- a["hickory", ] if(interactive()) {plot(h)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.