Skip to content
Prev 305551 / 398506 Next

How to convert the output of tapply() so that it has the same order as the input?

Does ave() do what you want?
  y. <- ave(x$value, x$x1, x$x2, FUN=function(x)x)

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com