R Dataset / Package DAAG / Cars93.summary


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

A Summary of the Cars93 Data set


The Cars93.summary data frame has 6 rows and 4 columns created from information in the Cars93 data set in the Venables and Ripley MASS package. Each row corresponds to a different class of car (e.g. Compact, Large, etc.).




This data frame contains the following columns:


minimum passenger capacity for each class of car


maximum passenger capacity for each class of car


number of cars in each class


a factor with levels C Compact, L Large, M Mid-Size, Sm Small, Sp Sporty, V Van


Lock, R. H. (1993) 1993 New Car Data. Journal of Statistics Education 1(1)


MASS library


type <- Cars93.summary$abbrev
type <- Cars93.summary[,4]
type <- Cars93.summary[,"abbrev"]
type <- Cars93.summary[[4]] # Take the object that is stored
                            # in the fourth list element.
  # R can now access the columns of Cars93.summary directly
pause()#  To change the name of the \verb!abbrev! variable (the fourth column)
names(Cars93.summary)[4] <- "code"
pause()#  To change all of the names, try
names(Cars93.summary) <- c("minpass","maxpass","number","code")

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-daag-cars93summary.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-46669.csv 162 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.