[R] Change order of columns in table?

David Winsemius dwinsemius at comcast.net
Mon May 17 16:57:42 CEST 2010


On May 17, 2010, at 10:31 AM, someone wrote:

>
> well, actually the script is run by crone job once in a while and id  
> hate to
> do things manually...

The order of levels of  a factor variable variable can be changed with  
a call along the lines of
fac <- factor(fac, levels=c"(Monday", "Tuesday", ..... ) )

Whether that will be applicable to this problem is unclear since you  
have provided such skimpy detail. (And please do not break the email  
chain in the future.)
-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list