Skip to content
Prev 243737 / 398503 Next

Help summarizing R data frame

Nice thing about R is there are a number of ways to do things:
identifier quantity
1          1       10
2          1       20
3          2       30
4          1       15
5          2       10
6          3       20
identifier quantity
1          1       45
2          2       40
3          3       20
or using 'data.table'
Loading required package: data.table
identifier V1
[1,]          1 45
[2,]          2 40
[3,]          3 20
On Thu, Dec 2, 2010 at 11:24 AM, chris99 <cheakes at hotmail.com> wrote: