Re: [R] summarize-plyr package

2009-09-25 Thread Girish A.R.
Works alright for me: > summarise(baseball,duration = max(year) - min(year),nteams = > length(unique(team))) duration nteams 1 136132 > ddply(baseball, "id", summarise, duration = max(year) - min(year), nteams > = length(unique(team))) id duration nteams 1aaronha01

Re: [R] summarize-plyr package

2009-09-25 Thread baptiste auguie
Hi, it works for me with plyr version 0.1.9. Try upgrading to the latest version, or post your sessionInfo() HTH, baptiste 2009/9/25 Veerappa Chetty : > Hi,I am using the amazing package 'plyr". I have one problem. I would > appreciate help to fix the following error: Thanks. > ___

[R] summarize-plyr package

2009-09-25 Thread Veerappa Chetty
Hi,I am using the amazing package 'plyr". I have one problem. I would appreciate help to fix the following error: Thanks. __ > library(plyr) > data(baseball) > summarise(baseball, + duration = max(year) - min(year), + nteams = length(unique(team))) Error: could not find