subset.antaresDataList | R Documentation |
Subset method for antaresDataList
.
## S3 method for class 'antaresDataList'
subset(x, y = NULL, areas = NULL, timeIds = NULL, mcYears = NULL, ...)
x |
Object of class |
y |
A table containing at least one of the columns "area", "timeId" or
"mcYear". If it is not |
areas |
Vector of area names to keep in the result. If |
timeIds |
Vector of time ids to keep. If |
mcYears |
Vector of monte-carlo years to keep. If |
... |
Currently unused. |
A filtered antaresDataList
.
## Not run:
#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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.