Description Usage Arguments Value Examples
Extract a subset of objects from container classes such as
ExpVarRasterStack
, PredictiveModelList
, PredictionList
and
PerformanceList
.
1 2 3 4 5 6 7 8 |
x |
an object of class |
subset |
integer or character indicating the objects to be extracted |
drop |
logical |
... |
additional arguments (none) |
Subsetted object, possibly simplified
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Sibuyan Island
lu <- DiscreteLulcRasterStack(x=stack(sibuyan$maps[1:2]),
categories=c(1,2,3,4,5),
labels=c("forest","coconut","grass","rice","other"),
t=c(0,14))
summary(lu)
lu <- subset(lu, subset=names(lu)[1])
summary(lu)
## load explanatory variables
idx <- data.frame(var=paste("ef_", formatC(1:13, width=3, flag=0)),
yr=rep(0,13),
dynamic=rep(FALSE,13))
ef <- ExpVarRasterStack(x=stack(sibuyan$maps[3:15]), index=idx)
summary(ef)
ef <- subset(ef, subset=1:5)
summary(ef)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.