Description Usage Arguments Value Examples
Select SPData[i,j] for cells i
and channels j
.
Note that this does not subset out nearest neighbours also.
1 2 | ## S4 method for signature 'SPData,ANY,ANY,ANY'
x[i, j]
|
i |
Cells to subset |
j |
Channels to subset |
x |
object from which to extract element(s) or in which to replace element(s). |
An SPData object reduced to cells i
and channels j
1 2 3 4 5 6 7 | ## Not run:
## subset to cells 1,3,5 and channels 8 to 10:
i <- c(1,3,5)
j <- 8:10
sp.reduced <- sp[i,j]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.