[R] ordering a data frame to same order as a chr vector

From: Ken Termiso <jerk_alert_at_hotmail.com>
Date: Tue 24 Jan 2006 - 02:55:58 EST


Hi all,

I've got a data frame that has an identical column to a chr vector. I would like to use the chr vector to order the rows of the data frame to be identical to the order in the chr vector (the contents of the chr vector are completely identical to one col of the data frame), but this is proving trickier than it sounds..

Any help would be much obliged,
-Ken



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jan 24 03:06:35 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:09 EST