temp_wk_list: List of weekly temperature parameters

Description Usage Arguments Value Examples

View source: R/WGEN_temp.R

Description

List of weekly temperature parameters

Usage

1

Arguments

data

dataframe of original weather dat with "date", "Tmax_C", "Tmin_C", "PPT_cm" columns

Value

list with 52 elements (1 for each week of the year, week 52 and 53 are combined). Each list element is a list that contains several elements including: "mean", mean temperature on all days; "sd", sd of temp; "wet_dry_temp", which is mean temp and wet and dry days; "A", A matrix; "B", B matrix.

Examples

1
2
3
4
5
wk_list <- temp_wk_list(wx_data)
# plotting min/max temps
Tmax_mean <- purrr::map_dbl(wk_list, function(x) x$means[1])
plot(Tmax_mean, type = "l", col = "red")
lines(purrr::map_dbl(wk_list, function(x) x$means[2]), col = "blue")

MartinHoldrege/precipr documentation built on Nov. 4, 2021, 11:10 a.m.