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 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 TextPrices R data set. The size of this file is about 285 bytes.

Text Prices

Description

Prices and number of pages for a sample of college textbooks

Format

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)

Details

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.

Source

Student project

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

Attachments: csv, json

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