Look at the reshape package - it allows that when using "cast"
----------------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 Fri, May 7, 2010 at 12:39 PM, Phil Wieland <phw...@gmx.de> wrote: > > I need to compute the mean and the standard deviation of a data set and > would > like to have the results in one table/data frame. I call tapply() two times > and do then merge the resulting tables to have them all in one table. Is > there any way to tell tapply() to use the functions mean and sd within one > function call? Something like tapply(data$response, list(data$targets, > data$conditions), c(mean, sd)). > > Thanks in advance. > -- > View this message in context: > http://r.789695.n4.nabble.com/Any-way-to-apply-TWO-functions-with-tapply-tp2133924p2133924.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > [[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.