[R] Function inside tapply

From: <dscully_at_fd9ns01.okladot.state.ok.us>
Date: Wed 08 Jun 2005 - 02:57:59 EST

I'm new to R and not an experienced writer of programs, which may help explain my question. I wish to create a table or data frame which contains the quantiles of the columns in the data frame DF. I wish to produce a table T where T[1] shows me the quantiles of column DF[1] right up through the entirety of DF. Tried several approaches with limited success. This looked like the best approach but I need a way to specify which quantiles I'm interested in. All I am able to achieve are the default vales. This only seems to be a problem when the quantile function is inside of tapply.
T<-tapply(DF,colnames(DF),quantile ,na.rm = TRUE)

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 08 03:04:43 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:27 EST