[R] tapply, how to get level information

From: Antje <niederlein-rstat_at_yahoo.de>
Date: Mon 08 Jan 2007 - 09:26:29 GMT


I'm applying a self-written function to a matrix on basis of different levels.
Is there any way, to get the level information within the self-written function???

t <- tapply(mat, levels, plotDensity)

plotDensity <- function(x) {

        ??? print(level(x)) ???


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 and provide commented, minimal, self-contained, reproducible code. Received on Mon Jan 08 20:32:48 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 08 Jan 2007 - 10:30:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.