[R] ordered factor and table

Troels Ring tring at gvdnet.dk
Mon Sep 1 16:04:27 CEST 2008


dear friends - I have an ordered factor, ID, in a data.frame, labs, and 
make a table,
aa <- with(labs,table(val >150,ID)) - and now the order in the table is 
according to the alphabetic order in ID, and not as I want it. I have 
tried adding
[order(unique(labs$ID)] but it doesn't help.
I have R 2.7.1 on WinXP.

Best wishes
Troels

-- 

Troels Ring - -
Department of nephrology - - 
Aalborg Hospital 9100 Aalborg, Denmark - -
+45 99326629 - -
tring at gvdnet.dk



More information about the R-help mailing list