R Dataset / Package Stat2Data / TextPrices


On this R-data statistics page, you will find information about the TextPrices data set which pertains to Text Prices. The TextPrices data set is found in the Stat2Data R package. You can load the TextPrices data set in R by issuing the following command at the console data("TextPrices"). This will load the data into a variable called TextPrices. If R says the TextPrices data set is not found, you can try installing the package by issuing this command install.packages("Stat2Data") 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 TextPrices R data set. The size of this file is about 285 bytes.

Text Prices


Prices and number of pages for a sample of college textbooks


A dataset with 30 observations on the following 2 variables.

R project statistics dataset table
Pages Number of pages in the textbook
Price Price of the textbook (in dollars)


Two undergraduate students at Cal Poly - San Luis Obispo took a random sample of 30 textbooks from the campus bookstore in the fall of 2006. They recorded the price and number of pages in each book, in order to investigate the question of whether number of pages can be used to predict price.


Student project


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-stat2data-textprices.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-76532.csv 285 bytes
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.