Re: [R] Maintaining sort order when transpose

2009-10-01 Thread Kevin Wright
An example would be helpful, but if I understand correctly, can't you do something like TDF=t(DF) TDF=TDF[,rownames(DF)] Kevin Wright On Thu, Oct 1, 2009 at 9:04 AM, Dry, Jonathan R < jonathan@astrazeneca.com> wrote: > Hi all - I have a data frame and have sorted it by a particular column,

[R] Maintaining sort order when transpose

2009-10-01 Thread Dry, Jonathan R
Hi all - I have a data frame and have sorted it by a particular column, with rownames set to a different variable. I wish to transpose this data frame, naming columns by the rowname variable but maintaining the sorted order through to the order of columns in my transposed table, however use of