Section 12 Example Data
12.1 data(iris)
This famous (Fisher’s or Anderson’s) iris data set gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica.
12.2 data(mtcars)
The data was extracted from the 1974 Motor Trend US magazine, and comprises fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973–74 models).
A data frame with 32 observations on 11 variables.
[, 1] mpg Miles/(US) gallon
[, 2] cyl Number of cylinders
[, 3] disp Displacement (cu.in.)
[, 4] hp Gross horsepower
[, 5] drat Rear axle ratio
[, 6] wt Weight (1000 lbs)
[, 7] qsec 1/4 mile time
[, 8] vs V/S
[, 9] am Transmission (0 = automatic, 1 = manual)
[,10] gear Number of forward gears
[,11] carb Number of carburetors
12.3 data(weather)
The data was extracted from real weather data recorded for 24h consecutively for 7 days.
day : Day of the week
hour : Hour of the day
cloud : Cloud cover (in octal)
rad : Radiation
temp : Temperature (in degree C)
humidity : Humidity (%)
rain : Dry or Wet
windsp : Wind speed (miles/h)
winddir : Calm or the direction of the wind