R Dataset / Package mosaicData / Utilities


On this R-data statistics page, you will find information about the Utilities data set which pertains to Utility bills. The Utilities data set is found in the mosaicData R package. You can load the Utilities data set in R by issuing the following command at the console data("Utilities"). This will load the data into a variable called Utilities. If R says the Utilities 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. 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 Utilities R data set. The size of this file is about 6,185 bytes.

Utility bills


Data from utility bills at a residence. Utilities2 is a similar data set with some additional variables.




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


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

See Also



if (require(lattice)) {
  xyplot(gasbill ~ temp, Utilities)

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

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-mosaicdata-utilities.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-47101.csv 6.04 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.