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. ______________________________________________ R-help@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.