[R] there was a function...
Peter Malewski
peter.malewski at gmx.de
Wed May 30 17:04:49 CEST 2001
I'm currently making xyplots from repeated-measurements data. With s+
there was a function make.groups.
I have rewrote this:
make.groups <-function (x) {
if (is.data.frame(x))
x <- as.matrix(x)
d <- dim(x)
data.frame(which = rep(1:dim(x)[2], rep(dim(x)[1], dim(x)[2])),
id = rep(1:dim(x)[1], dim(x)[2]), data = c(x))
}
so far so good. But I'm sure there were builtin-functions that do nearly the
same, but I cannot remember the names ????
Thanks
Peter
--
P.Malewski, Limmerstr.47, 30451 Hannover, 0511-2135008
At work: http://www.MH-Hannover.de 0511 532 3194 / Fax: 0511 532 3190,
P.Malewski at tu-bs.de, peter.malewski at gmx.de, malewski.peter at mh-hannover.de.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list