Learn R Programming

caschrono (version 2.4)

khct: Monthly electricity comsumption for the period 1970-1984

Description

Monthly electricity consumption, heating degree days and cooling degree days in some region for the period 1970-1984.

Usage

data(csdl)

Arguments

Value

csdl is a multivariate ts object which contains:

kwh

electricity consumption in kilo-watt-hours

htdd

heating degree days, in Fahrenheit degrees

cldd

cooling degree days, in Fahrenheit degrees

Details

htdd (heating degree days) is minus the sum over the month of the daily difference between the average daily temperature, if it is lower than 65 F. degrees, and 65 F. degrees, the equilibrium temperature above which a house does not need to be heated.
cldd (cooling degree days) is the sum over the month of the daily difference between the average daily temperature, if it is greater than 65 F. degrees, and 65, the equilibrium temperature above which air conditioning is switched on.
The dataset is from the book by Pankratz (1991).

Examples

Run this code
data(khct)
# The executed code is : 
## Not run: 
khct = read.csv2(file= system.file("/import/conselec.csv",package="caschrono"))
attach(khct)
khc = ts(cbind(kwh, htdd,cldd), frequency = 12, start=c(1970,1))
kwh = khc[,1]
htdd = khc[,2]
cldd = khc[,3]
temps = time(kwh)
## End(Not run)

Run the code above in your browser using DataLab