[R] how to sort the contents of a list-object?

About this list Date view Thread view Subject view Author view Attachment view

From: Martin Kerick (m.kerick@mucosa.de)
Date: Wed 12 May 2004 - 18:22:43 EST


Message-id: <000101c437fa$4d5bf3c0$7dbc5ec2@mucosalab.de>

Dear all,

I have a list-object RGList named RG containing two vectors (RG$R and RG$G)
and a data.frame(RG$genes) with 8 variables. Each of the variables of the
data.frame have the same length as the two vectors. I think the data in the
RGList is structured in such a way, that the first entry in the vector RG$R
belongs to the first entry in the data.frame variable e.g. RG$genes$Row.
Now my question:
Is it possible to sort the RGList object by the values of one variable of my
data.frame e.g. RG$genes$Row without loosing the ties between the different
parts of the list ?

Any help would be greatly appreciated,

Martin

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:09 EST