integratefunDataFrame: Integration on the soil layers

View source: R/integratefunDataFrame.R

integratefunDataFrameR Documentation

Integration on the soil layers

Description

This function integrates the values of a zt-variable quantity within a certain thickness.

Usage

integratefunDataFrame(
  df,
  z = NULL,
  zrange = c(0, 500),
  formatter = "z%04d",
  factor = 10,
  rescaleWithDz = FALSE,
  ...
)

Arguments

df

data frame or 'zoo' object with (modeled) time series.

z

vector of soil layer depths. Default is NULL and is taken from column names of df.

zrange

vector of soil layer thickness within which df values are integrated (or averaged) with approx and then integrated with integrate.

formatter

character string with decimal formatter. It is used if z or zout are string vectors. Default is "z%04d".

factor

unit factor used for conversion of z or zout from String vector to numeric vector and viceversa.

rescaleWithDz

logical value. If is TRUE the integrated value is rescaled with soil thickness (mean). Default is FALSE and the value is not rescaled.

...

further argument for approx

Value

The values of the df quantity interpolated in the zout soil depths.

See Also

approx,integrate

Examples


## NOTHING 

ecor/geotopOptim2 documentation built on Sept. 16, 2024, 9:44 a.m.