R Dataset / Package mosaicData / Utilities2

On this R-data statistics page, you will find information about the Utilities2 data set which pertains to Utility bills. The Utilities2 data set is found in the mosaicData R package. You can load the Utilities2 data set in R by issuing the following command at the console data("Utilities2"). This will load the data into a variable called Utilities2. If R says the Utilities2 data set is not found, you can try installing the package by issuing this command install.packages("mosaicData") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the Utilities2 R data set. The size of this file is about 15,575 bytes.

Utility bills

Description

Data from utility bills at a private residence. This is an augmented version of Utilities.

Usage

data(Utilities2)

Format

A data frame containing 117 observations for 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.

See Also

Utilities.

Examples

data(Utilities2)
if (require(lattice)) {
xyplot(gasbillpday ~ temp, Utilities2)
}

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-mosaicdata-utilities2.html" width="100%" height="100%" style="border:0px"></iframe>