[R] Creating a table with median for multiple variables

billy_no_mates peterscottmiller at gmail.com
Thu Feb 4 16:13:28 CET 2010


 party votes1st
1     ind      335
2     ind     1614
3      fg     5468
4     lab     4272
5      ff     9343
6      ff    12489
7      ff     8711
8      gp     4961
9     lab     3732
10     fg     7841
11    lab       NA
12     sf     2078
13     fg     4819
14     ff    10679
15     sf    10832
16    lab      550

Need to put all the parties together and calculate the median for each
party's 1stvote. Thanks a lot for your response Jim. I spent a long time
trying to do this last night. Do I have to use a command so that R
recongnises each party label (ff, sf etc etc)? 

Best wishes from Scotland

-- 
View this message in context: http://n4.nabble.com/Creating-a-table-with-median-for-multiple-variables-tp1461994p1468949.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list