subset,ExpVarRasterList-method {lulcc} | R Documentation |
Subset
Description
Extract a subset of objects from container classes such as
ExpVarRasterList
, PredictiveModelList
, PredictionList
and
PerformanceList
.
Usage
## S4 method for signature 'ExpVarRasterList'
subset(x, subset, ...)
## S4 method for signature 'PredictiveModelList'
subset(x, subset, ...)
## S4 method for signature 'PerformanceList'
subset(x, subset, ...)
## S4 method for signature 'PredictionList'
subset(x, subset, ...)
Arguments
x |
an object of class |
subset |
integer or character indicating the objects to be extracted |
... |
additional arguments (none) |
Examples
## Sibuyan Island
## load observed land use data
obs <- ObsLulcRasterStack(x=sibuyan$maps,
pattern="lu",
categories=c(1,2,3,4,5),
labels=c("Forest","Coconut","Grass","Rice","Other"),
t=c(0,14))
summary(obs)
obs <- subset(obs, subset=names(obs)[1])
summary(obs)
## load explanatory variables
ef <- ExpVarRasterList(x=sibuyan$maps, pattern="ef")
summary(ef)
ef <- subset(ef, subset=1:5)
summary(ef)
[Package lulcc version 1.0.4 Index]