Subset method for antaresDataList
.
# S3 method for class 'antaresDataList'
subset(x, y = NULL, areas = NULL, timeIds = NULL, mcYears = NULL, ...)
Object of class antaresDataList
created with
readAntares
.
A table containing at least one of the columns "area", "timeId" or
"mcYear". If it is not NULL
, then only tuples (area, timeId,
mcYear)
present in this table are kept.
Vector of area names to keep in the result. If NULL
, all
areas are kept.
Vector of time ids to keep. If NULL
, all time ids are
kept.
Vector of monte-carlo years to keep. If NULL
, all time
ids are kept.
Currently unused.
A filtered antaresDataList
.
if (FALSE) { # \dontrun{
#keep only the first year
mydata <- readAntares(areas = "all", links = "all", mcYears = "all")
mySubset<-subset(mydata, mcYears = 1)
#keep only the first year for areas a and b
mydata <- readAntares(areas = "all", links = "all", mcYears = "all")
mySubset<-subset(mydata, mcYears = 1, areas=c("a", "b"))
#' #keep only the first year for areas a and b and timeIds include in 5:16
mydata <- readAntares(areas = "all", links = "all", mcYears = "all")
mySubset<-subset(mydata, mcYears = 1, areas=c("a", "b"), timeIds=5:16)
} # }