R Dataset / Package Stat2Data / ThreeCars

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

Three Cars

Description

Compare prices for Porsche, Jaguar, and BMW cars offered for sale at an internet site

Format

A dataset with 90 observations on the following 8 variables.

R project statistics dataset table
CarType BMW, Jaguar, or Porsche
Price Asking price (in $1,000's)
Age Age of the car (in years)
Mileage previous miles driven (in 1,000's)
Car 0=Porsche, 1=Jaguar, 2=BMW
Porsche Indicator with 1= Porsche and 0=otherwise
Jaguar Indicator with 1= Jaguar and 0=otherwise
BMW Indicator with 1= BMW and 0=otherwise

Details

Two students collected samples of Porsche, Jaguar, and BMW cars that were offered for sale at an internet site. In addition to asking price, they recorded the model year (converting to age) and mileage of each advertised car. The PorschePrice dataset has only the Porsche data and the PorscheJaguar dataset has the data for those two models.

Source

Student project data collected from autotrader.com in Spring 2007.

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

Attachments: csv, json

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