bio6: bio6: Calculates minimum temperature of the coldest period of...

Description Usage Arguments Details Value See Also Examples

Description

bio6 is used to calculate the minimum temperature value across all months of the year.

Usage

1
bio6(temps, tme, method = "")

Arguments

temps

a vector of temperatures, normally for one year (see details).

tme

a POSIXlt object representing the date and time of each temps value.

method

an optional character string describing the method to calculate minimum temperature. Options are "anuclimmean", "anuclimmin" or unspecified (see details).

Details

"anuclimmean" splines mean monthly temperature to weekly time period across all months and returns the mean minimum weekly temperature. Anuclimmax splines minimum monthly temperatures to weekly time period and returns the minimum weekly temperature. If left unspecified, the minimum temperature across all values of each year is returned.

Value

a single numeric value of minimum temperature for the defiend period.

See Also

the tmecreate() function can be used to create a POSIXlt object.

Examples

1
2
3
4
5
6
temps <- 10 * sin(c(0:1459) / (pi * 150)) + rnorm(1460)
tme <- tmecreate(2010, 6)
plot(temps~as.POSIXct(tme), type = "l", xlab = "Month", ylab = "Temperature")
bio6(temps, tme)
bio6(temps, tme, method = "anuclimmean")
bio6(temps, tme, method = "anuclimmin")

ilyamaclean/climvars documentation built on June 19, 2019, 2:22 p.m.