aggregateData: Aggregate validation data for further analysis

Description Usage Arguments Value Examples

View source: R/aggregateData.R

Description

Aggregate validation data for further analysis

Usage

1
aggregateData(data, aggregation = "month", na.rm = TRUE)

Arguments

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

Value

An object containing aggregated values for nloc, nsim, ntime, time, observations, simulations and the requested attributes

Examples

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)

BramDr/dischargeValidation documentation built on Sept. 3, 2019, 1:57 p.m.