Skip to content
Prev 280663 / 398502 Next

aggregate function

Here is an example using 'data.table'"
+ 1               a
+ 2               b
+ 2               c
+ 2               d
+ 3               e
+ 4               f", header = TRUE, as.is = TRUE)
+     , list( case1 = paste(case1, collapse = ','))
+     , by = param
+  ]
     param case1
[1,]     1     a
[2,]     2 b,c,d
[3,]     3     e
[4,]     4     f

        
On Wed, Dec 21, 2011 at 11:26 AM, Mary Kindall <mary.kindall at gmail.com> wrote: