[R] Creating a table with median for multiple variables

Peter Alspach Peter.Alspach at plantandfood.co.nz
Thu Feb 4 06:03:17 CET 2010


?tapply
?aggregate

should get you started ....

Peter Alspach 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of billy_no_mates
> Sent: Thursday, 4 February 2010 12:55 p.m.
> To: r-help at r-project.org
> Subject: [R] Creating a table with median for multiple variables
> 
> 
> I need to create a table using median "votes" by "party"
> 
> I have a large dataset with 7 different parties and 464 
> different vote numbers. 
> 
> Any suggestions?
> --
> View this message in context: 
> http://n4.nabble.com/Creating-a-table-with-median-for-multiple
> -variables-tp1461994p1461994.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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