apply.davg.oncols: Apply daily average on columns of dataframe

View source: R/apply.davg.oncols.r

apply.davg.oncolsR Documentation

Apply daily average on columns of dataframe

Description

Function to apply a daily average on the columns of a dataframe v0.1 2020-03-02

Usage

apply.davg.oncols(
  mod.wo,
  daystep = 1,
  ignoreQzeros = F,
  calc.max = F,
  calc.min = F
)

Arguments

mod.wo

character; A data frame with JDAY (numeric) as the first column in sub-daily timesteps

daystep

numeric; timestep (in days) to calculate average over

ignoreQzeros

logical; ignores zero flows in daily averaging !!!

calc.max

logical; if true, calculate the daily max, not the daily average!

calc.min

logical; if true, calculate the daily min, not the daily average!

Value

davg.out

a dataframe with daily data instead of sub-daily

Author(s)

Norman Buccola

Examples

apply.davg.oncols()

nbuccola/w2r documentation built on June 2, 2025, 2:12 a.m.