utilities: Utilities bills

Description Usage Format Source Examples

Description

Data from utility bills at a residence.

Usage

1
2
3

Format

A data frame the following variables.

month

month (coded as a number)

day

day of month on which bill was calculated

year

year of bill

temp

average temperature (F) for billing period

kwh

electricity usage (kwh)

ccf

gas usage (ccf)

thermsPerDay

a numeric vector

billingDays

number of billing days in billing period

totalbill

total bill (in dollars)

gasbill

gas bill (in dollars)

elecbill

exectric bill (in dollars)

notes

notes about the billing period

ccfpday

average gas usage per day [utilities2 only]

kwhpday

average electric usage per day [utilities2 only]

gasbillpday

gas bill divided by billing days [utilities2 only]

elecbillpday

electric bill divided by billing days a numeric vector [utilities2 only]

totalbillpday

total bill divided by billing days a numeric vector [utilities2 only]

therms

thermsPerDay * billingDays [utilities2 only]

monthsSinceY2K

months since 2000 [utilities2 only]

Source

Daniel T. Kaplan, Statistical modeling: A fresh approach, 2009.

Examples

1
2
3
data(utilities); data(utilities2)
xyplot(gasbill ~ temp, utilities)
xyplot(gasbillpday ~ temp, utilities2)

fastR documentation built on May 2, 2019, 5:53 p.m.