degree_days: Degree days

Description Usage Arguments Details Value Author(s) References Examples

Description

calculate the degree days. the value can be daily, monthly and yearly.

Usage

1
degree_days(x, season = c("daily", "monthly", "yearly"), low, high)

Arguments

x

Air Temperature in [C]

season

There are three options of season: daily, monthly and yearly. If you choose "daily", you have to add in x 365 values of mean temperatures (1 year). If you choose "monthly", add the monthly mean temperatures (12 values). If you choose "yearly", add the yearly mean temperature.

low

The Minimum temperature limit of the comfort zone.

high

The Maximum temperature limit of the comfort zone.

Details

When the site's temperature is outside of the comfort zone, it is measured in heating or cooling "degree days". A degree day is a measure of heating or cooling. A degree day is defined as a departure of the mean daily temperature from a given standard: one degree day for each degree of departure above (or below) the base temperature during one day. The degree day is related to the outside temperature and is not related to time.

Heating and cooling degree days can be used to relate how much more or less you might spend on heating or air conditioning if you move from one part of the country to another.

Value

A table with three columns:

season

shows (depending of the season) the numbers of days, months or years

Degree.days

shows the degree days

Type

Type of degree day (heating or cooling)

Author(s)

Ricardo Ochoa, Ilse Avalos

References

Preciado, O. U., & Molina, C. M. (2013). Grados Dia, 1-2.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(weather_mx)
comfort_zone <- subset(weather_mx, USAF==766120)
comfort_zone <- ddply(.data = comfort_zone, 
                .variables = c('D', "M"), 
                .fun = summarise, 
                tempmax = round(mean(Max.temp, na.rm = T),2), 
                tempmin=round(mean(Min.temp, na.rm=T),2), 
                tempmed=round(mean(Mean.temp, na.rm=T),2))
sp <- degree_days(comfort_zone$tempmed, "daily", 22,26)
sp <- subset(sp, Type != "comfort")

Iavalos/Comfort documentation built on May 8, 2019, 10:59 a.m.