Learn R Programming

DAAG (version 1.22)

toycars: Toy Cars Data

Description

The toycars data frame has 27 rows and 3 columns. Observations are on the distance traveled by one of three different toy cars on a smooth surface, starting from rest at the top of a 16 inch long ramp tilted at varying angles.

Usage

toycars

Arguments

Format

This data frame contains the following columns:

angle

tilt of ramp, in degrees

distance

distance traveled, in meters

car

a numeric code (1 = first car, 2 = second car, 3 = third car)

Examples

Run this code
# NOT RUN {
toycars.lm <- lm(distance ~ angle + factor(car), data=toycars)
summary(toycars.lm)
# }

Run the code above in your browser using DataLab