Re: [R] Sum of specific column

2007-04-25 Thread Stephen Weigand
On 4/25/07, Spilak,Jacqueline [Edm] <[EMAIL PROTECTED]> wrote: > I have a data set that I have imported (not sure if that makes a > difference) and I would like to calculate the sum of only specific > columns. I have tried > >colSums(dataset, by=list(dataset$col5), dims=1) and I get an error of >

[R] Sum of specific column

2007-04-25 Thread Spilak,Jacqueline [Edm]
I have a data set that I have imported (not sure if that makes a difference) and I would like to calculate the sum of only specific columns. I have tried >colSums(dataset, by=list(dataset$col5), dims=1) and I get an error of unused arguments I have also tried >aggregate(dataset, by=list(dataset$co