inst/snippet/punting2.R

###hop:3-9
summary(lm(rFlexibility~rStrength, punting))
punt.plot <- xyplot(rStrength~rFlexibility, punting)
# if all we want is the correlation coefficient, we can get it directly
r <- cor(punting$rStrength, punting$rFlexibility); r
r^2

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 1, 2019, 11:18 p.m.