R Dataset / Package mosaicData / Utilities
November 27, 2023
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 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 Utilities R data set. The size of this file is about 6,185 bytes.
Utility bills
Description
Data from utility bills at a residence. Utilities2 is a similar data set with some additional variables.
Usage
data(Utilities)
Format
A data frame containing 117 observations for the following variables.
-
monthmonth (coded as a number) -
dayday of month on which bill was calculated -
yearyear of bill -
tempaverage temperature (F) for billing period -
kwhelectricity usage (kwh) -
ccfgas usage (ccf) -
thermsPerDaya numeric vector -
billingDaysnumber of billing days in billing period -
totalbilltotal bill (in dollars) -
gasbillgas bill (in dollars) -
elecbillexectric bill (in dollars) -
notesnotes about the billing period
Source
Daniel T. Kaplan, Statistical modeling: A fresh approach, 2009.
See Also
Utilities2.
Examples
data(Utilities)
if (require(lattice)) {
xyplot(gasbill ~ temp, Utilities)
} Dataset imported from https://www.r-project.org.
<iframe src="https://jmagunia.com/iframe/r-dataset-package-mosaicdata-utilities.html" width="100%" height="100%" style="border:0px"></iframe>