An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060215/0bc9f94a/attachment.pl
aggregate data.frame using column-specific functions
3 messages · Markus Preisetanz, Jacques VESLOT, justin bem
you can use mapply()... z <- as.data.frame(matrix(1:3,3,3,T)) mapply(function(x,y) x(y), c(sum,prod,sum), z) Markus Preisetanz a ??crit :
Dear Colleagues, does anybody know how to aggregate a data.frame using different functions for different columns? Sincerely
___________________
Markus Preisetanz
Consultant
Client Vela GmbH
Albert-Ro??haupter-Str. 32
81369 M??nchen
fon: +49 (0) 89 742 17-113
fax: +49 (0) 89 742 17-150
mailto:markus.preisetanz at clientvela.com <mailto:markus.preisetanz at clientvela.com>
Diese E-Mail enth??lt vertrauliche und/oder rechtlich gesch??tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt??mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged infor...{{dropped}}
------------------------------------------------------------------------
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060215/813400c0/attachment.pl