R Dataset / Package DAAG / modelcars

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

Model Car Data


The modelcars data frame has 12 rows and 2 columns. The data are for an experiment in which a model car was released three times at each of four different distances up a 20 degree ramp. The experimenter recorded distances traveled from the bottom of the ramp across a concrete floor.




This data frame contains the following columns:


a numeric vector consisting of the lengths traveled (in cm)


a numeric vector consisting of the distance of the starting point from the top of the ramp (in cm)


W.J. Braun


modelcars.lm <- lm(distance.traveled ~ starting.point, data=modelcars)
pause()print("Response Curves - Example 4.6")
stripchart(distance.traveled ~ starting.point, vertical=TRUE, pch=15,
 xlab = "Distance up ramp", ylab="Distance traveled")

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

Attachments: csv, json

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