[R] summarize-plyr package

baptiste auguie baptiste.auguie at googlemail.com
Fri Sep 25 16:25:11 CEST 2009


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 <chettyvk at gmail.com>:
> 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 function "summarise"
>> ddply(baseball, "id", summarise,
> + duration = max(year) - min(year),
> + nteams = length(unique(team)))
> Error in llply(.data = .data, .fun = .fun, ..., .progress = .progress) :
>  object "summarise" not found
> --------------------------------------------
>
> --
> Professor of Family Medicine
> Boston University
> Tel: 617-414-6221, Fax:617-414-3345
> emails: chettyvk at gmail.com,vchetty at bu.edu
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list