climmeans: Calculate climate means for relevant weather variables

View source: R/climmeans.R

climmeansR Documentation

Calculate climate means for relevant weather variables

Description

Calculate climate means for relevant weather variables

Usage

climmeans(dat_in, gasex = c("Thiebault", "Wanninkhof"))

Arguments

dat_in

Input data frame as a similar format required for ecometab

gasex

chr indicating if gas exchange is estimated using equations in Thiebault et al. 2008 or Wanninkhof 2014 (see f_calcKL or f_calcWanninkhof)

Details

Function is used internally within ecometab. Missing values for weather variables are replaced by the monthly/hourly average calculated from the available data in dat_in. If gasex = 'Thiebault', this applies to air temperature, wind speed, and barometric pressure. If gasex = 'Wanninkhof', this applies to wind speed and barometric pressure, where the latter is not needed for the Wanninkhof method, but is required for dissolved oxygen at saturation (oxySol) with gas exchange.

Value

The same data frame as in dat_in, except missing values for the relevant weather variables are replaced with estimated means.

Examples

climmeans(SAPDC)

fawda123/WtRegDO documentation built on June 8, 2024, 1:07 p.m.