aggregateVar: Extract variable from an object returend by...

Description Usage Arguments Note See Also Examples

View source: R/aggregateVar.R

Description

Extract variable from an object returend by geotopLookUpTable

Usage

1
2
3
4
5
6
7
aggregateVar(
  x,
  InputVar = NULL,
  aggregate = c("hourly", "daily", "monthly", "yearly"),
  aggregate_fun = c("mean", "sum"),
  ...
)

Arguments

x

objectect returned by geotopLookUpTable with merge==TRUE

InputVar

discover variable

aggregate

aggregate option. Default it is c("hourly","daily","monthly","yearly") and it is considered the first element.

aggregate_fun

aggregate function for InputVar and Add_InputVar respectively. Deafault is c("mean","sum").

...

further arguments

Note

It is assumed that x already contains hourly aggregated time series, so in case aggregare=="hourly" no aggragetion is calculated.

See Also

geotopLookUpTable

Examples

1
2
3
4
5
6
7
wpath <- system.file('geotop-simulation/B2site',package="geotopOptim2")

ex <- geotopLookUpTable(wpath = wpath)
 
eout <- aggregateVar(ex)
dout <- aggregateVar(ex,aggregate="daily")
mout <-  aggregateVar(ex,aggregate="monthly")

EURAC-Ecohydro/geotopOptim2 documentation built on March 3, 2021, 4:56 a.m.