On Mon, Jan 10, 2011 at 8:23 PM, analys...@hotmail.com
wrote:
> an example available on the net goes like
>
>> df
> identifier quantity
> 1 1 10
> 2 1 20
> 3 2 30
> 4 1 15
> 5 2 10
> 6 3 20
>> aggregate(df$q
an example available on the net goes like
> df
identifier quantity
1 1 10
2 1 20
3 2 30
4 1 15
5 2 10
6 3 20
> aggregate(df$quantity, by=list(df$identifier), sum)
Group.1 x
1 1 45
2 2 40
3
Mark,
Give a look:
rres<-read.table(stdin(), head=T, sep=",")
ID,Traversed, v2
1,5,1
1,7,1
1,8,1
2,8,2
2,11,2
2,7,2
3,11,3
3,22,3
3,16,3
aggregate(rres[c("Traversed", "v2")], list(rres$ID), sum)
bests
milton
On Fri, May 1, 2009 at 5:07 PM, Altaweel, Mark R. wrote:
> Hi,
>
> I am trying to
Hi,
I am trying to sum column information in a list with 3 instances.
For example:
ID Traversed IDTraversed IDTraversed
1 5 1 71 8
2 8 2 11 2 7
3
4 matches
Mail list logo