# subset.fasp

0th

Percentile

##### Extract Subset of Function Array

Extract a subset of a function array (an object of class "fasp").

Keywords
spatial
##### Usage
subset.fasp(X, I, J, drop,...)
subset.fasp(X, I, J)
X[I]
X[I, J]
##### Arguments
X
A function array. An object of class "fasp".
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
Ignored - this argument is required for consistency with other methods for subset.
...
Ignored - this argument is required for consistency with other methods for subset.
##### Details

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.

##### Value

• A function array (of class "fasp").

##### synopsis

subset.fasp(x, I, J, drop,...)

fasp.object

• subset.fasp
• [.fasp
##### Examples
# Lansing woods data - multitype points with 6 types
data(lansing)
# compute 6 x 6 array of all cross-type K functions
a <- alltypes(lansing, "K")
plot(a)
<testonly># smaller dataset
sub <- lansing[ seq(1,lansing$n,by=40), ] a <- alltypes(sub, "K")</testonly> # first three marks only b <- a[1:3,1:3] plot(b) # subset pertaining to hickories h <- a[levels(lansing$marks) == "hickory", ]
plot(h)
Documentation reproduced from package spatstat, version 1.5-9, License: GPL version 2 or newer

### Community examples

Looks like there are no examples yet.