data[order(var1), ]
From: gov2001-l-bounces at
lists.fas.harvard.edu
[mailto:gov2001-l-bounces at
lists.fas.harvard.edu] On Behalf Of John Sheffield
Sent: Monday, April 28, 2008 3:35 AM
To: gov2001-l at
lists.fas.harvard.edu
Subject: [gov2001-l] Sorting a data frame
Silly question:
How does one sort a dataframe such that it only sorts on the characteristics
of the first column and preserves each row as an intact unit? I.e., I have a
vector of propensity scores in column one that I want sorted, but the
propensity score corresponds to other variables in columns 2-8 that must
remain connected to those scores.
Thanks!
John