Re: [R] Data frame aggregation

2011-10-07 Thread peter dalgaard
On Oct 7, 2011, at 14:53 , PHILIP GLADWIN, BLOOMBERG TRADEBOOK: wrote: > Hello, > Could anybody help me with this question? > > Example data frame > NAME TICKER SHARES PERFORMANCE > John ABC1000.05 > John ABC1000 1.5 > Alice

Re: [R] Data frame aggregation

2011-10-07 Thread jim holtman
Here is one way to do it using data.table package: > x <- read.table(textConnection("NAME TICKER SHARES PERFORMANCE + John ABC1000.05 + John ABC1000 1.5 + Alice EFG20 0.3 + Paul HIJ50 1.0 + Paul JKL

[R] Data frame aggregation

2011-10-07 Thread PHILIP GLADWIN, BLOOMBERG TRADEBOOK:
Hello, Could anybody help me with this question? Example data frame NAME TICKER SHARES PERFORMANCE John ABC1000.05 John ABC1000 1.5 Alice EFG20 0.3 Paul HIJ50 1.0 Paul JKL