inst/snippets/Exploration10.3.9.R

# assigning function of the linear model the name fh
fh <- makeFun(lm(height ~ footlength, data = FootHeight))
fh(footlength = 28) # predicted height for foot length 28
fh(footlength = 29) # predicted height for foot length 29
rpruim/ISIwithR documentation built on May 28, 2019, 1:30 a.m.