Learn R Programming

R330 (version 1.0)

metal.df: Metal Removal

Description

Data from an experiment to measure the rate of metal removal in a machining process on a lathe

Usage

data(metal.df)

Arguments

Format

A data frame with 15 observations on the following 3 variables:
hardness
hardness of the material being machined
setting
speed setting of the lathe (fast, medium or slow
rate
rate of metal removal (response)

Examples

Run this code
data(metal.df)
med <-ifelse(metal.df$setting=="medium", 1,0)
slow<-ifelse(metal.df$setting=="slow", 1,0)
summary(lm(rate~med + slow + hardness, data=metal.df))

Run the code above in your browser using DataLab