Description Usage Arguments Value Examples
View source: R/aggregateData.R
Aggregate validation data for further analysis
1 | aggregateData(data, aggregation = "month", na.rm = TRUE)
|
data |
Object returned from getData (class validationData) |
aggregation |
Time aggregation. Values for "month" and "year" are automatically converted. Custom aggregation by specifying a date format (i.e. used in format.Date) which is subsequently converted to a date if possible (i.e. used in as.Date) |
na.rm |
Handles how to deal with NA's |
An object containing aggregated values for nloc, nsim, ntime, time, observations, simulations and the requested attributes
1 2 3 4 5 6 | obsFile = "data/obsSampleRhine.nc"
simFiles = c("data/simSampleRhine.nc")
locations = getLocationsFromBoundingBox(obsFile = obsFile, boundingBox = c(6.75,10.25,47.75,51.25))
data = getData(obsFile = obsFile, simFiles = simFiles, location = locations[1:4])
data.agg = aggregateData(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.