Skip to content
Prev 168544 / 398502 Next

Odp: Question about collapse/aggregate and avoidance of loops

Hi

r-help-bounces at r-project.org napsal dne 29.01.2009 07:52:37:
Not sure if it is most efficient but

 aggregate(tmp$author, list(tmp$id), function(x) paste(x, collapse=","))

can do the trick

Regards
Petr
http://www.R-project.org/posting-guide.html