Re: [R] error using ddply to generate means

2011-10-01 Thread Dennis Murphy
Hi: Here's the problem: > str(fun3) 'data.frame': 4 obs. of 3 variables: $ sector:'data.frame': 4 obs. of 1 variable: ..$ gics_sector_name: chr "Financials" "Financials" "Materials" "Materials" $ bebitpcchg: num -0.567 0.996 NA -42.759 $ ticker: chr "UBSN VX Equity" "LLOY

[R] error using ddply to generate means

2011-10-01 Thread Aidan Corcoran
Dear list, I encounter an error when I try to use ddply to generate means as follows: fun3<-structure(list(sector = structure(list(gics_sector_name = c("Financials", "Financials", "Materials", "Materials")), .Names = "gics_sector_name", row.names = structure(c("UBSN VX Equity", "LLOY LN Equity",