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

View source: R/aggregateVar.R

aggregateVarR Documentation

Extract variable from an object returend by geotopLookUpTable

Description

Extract variable from an object returend by geotopLookUpTable

Usage

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

wpath <- system.file('geotop-simulation/B2_BeG_017',package="geotopOptim2")
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")




ecor/geotopOptim2 documentation built on April 19, 2023, 4:35 a.m.