Spark Online Training by Edureka

ThreeCars: Three Cars

Description Format Details Source


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


A dataset with 90 observations on the following 8 variables.

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


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.


Student project data collected from in Spring 2007.

Search within the Stat2Data package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.