dbW_temporal_summaries: Summarize daily weather to weekly, monthly, or yearly values

dbW_temporal_summariesR Documentation

Summarize daily weather to weekly, monthly, or yearly values

Description

Summarize daily weather to weekly, monthly, or yearly values

Usage

dbW_weatherData_to_monthly(
  dailySW,
  na.rm = FALSE,
  valNA = NULL,
  funs = weather_dataAggFun()
)

dbW_dataframe_aggregate(
  dailySW,
  time_step = c("Year", "Month", "Week", "Day"),
  na.rm = FALSE,
  funs = weather_dataAggFun()
)

dbW_dataframe_to_monthly(dailySW, na.rm = FALSE)

Arguments

dailySW

A list of elements of class swWeatherData that each hold daily weather data for one calendar year.

na.rm

A logical value. Should missing daily values be removed before calculating monthly temperature and precipitation.

valNA

The (numerical) value of missing weather data. If NULL, then default values are interpreted as missing.

funs

A named vector of functions. The names must match column names in dailySW and the function are used to summarize daily weather values.

time_step

A character string.


DrylandEcology/rSOILWAT2 documentation built on Jan. 12, 2024, 9:06 p.m.