I would like to call both p-values and R-squared values from lm's in a function.  I can get the p-values from coef(summary(name.lm))[r,c], however, I cannot figure out how to call the R-squared values without manually calling the summary and inserting them in the script - which negates the value of automating the process through a function.

Thanks,
Mike

	[[alternative HTML version deleted]]

