Hi Rich, It is a bit hard to read the "summary" you are using. Consider please pasting the output of: ls.str(chemdata)
Regarding your question, please start and see if this work (I'm not sure, since it seems you have made some changes to the summary output, and I am only guessing how things look): mean(chemdata$quant[chemdata$param =="Arsenic"]) sd(chemdata$quant[chemdata$param =="Arsenic"]) Cheers, Tal ----------------Contact Details:------------------------------------------------------- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Wed, Aug 31, 2011 at 12:00 AM, Rich Shepard <rshep...@appl-ecosys.com>wrote: > mean(chemdata.param="Arsenic") [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list 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.