get_transpiration: Calculate transpiration from output

View source: R/sw_OutputDerived_Functions.R

get_transpirationR Documentation

Calculate transpiration from output

Description

Calculate transpiration from output

Usage

get_transpiration(
  x,
  timestep = c("Day", "Week", "Month", "Year"),
  keep_time = FALSE
)

Arguments

x

An object of class swOutput.

timestep

A character string. One of the rSOILWAT2 time steps.

keep_time

A logical value. Include time information in the returned object.

Value

A numeric vector of transpiration [mm] for each time step or a numeric matrix if 'keep_time'.

Examples

sw_out <- sw_exec(inputData = rSOILWAT2::sw_exampleData)
get_transpiration(sw_out, "Month")
get_transpiration(sw_out, "Month", keep_time = TRUE)


Burke-Lauenroth-Lab/rSOILWAT2 documentation built on Dec. 9, 2023, 1:46 a.m.