Continuing my learning curve after 25_ years with using SAS. Want to
pull the "Mean" forom the summary of something...
test <- rnorm(1000,1.5,1.25)
hold <- summary(test)
names(hold)
[1] "Min." "1st Qu." "Median" "Mean" "3rd Qu." "Max."
OK, so "Mean" is in there.
So, is there a short form answer for why hold$Mean throws an error, and
hold["Mean"} returns the mean (as desired)?
Silly question I know, but gotta start somewhere...
Thanks...
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.