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: [email protected],[email protected] [[alternative HTML version deleted]] ______________________________________________ [email protected] 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.

