Message-ID: <3ECA0A7D.7080906@statistik.uni-dortmund.de>
Date: 2003-05-20T10:59:09Z
From: Uwe Ligges
Subject: Sorting in data frames
In-Reply-To: <seca0fb8.019@wpo.nerc.ac.uk>
Stephen Thackeray wrote:
> Hi,
>
> Is it possible to sort the rows within a data frame, with respect to
> the values in one or more of the columns? For example, if I had measured
> water temperatures at differenrt depths within a lake, on different
> sampling dates and had a dataframe containing sampling dates (x),
> sampling depths (y) and data for each day-depth combination (z), would
> it be possible to rearrange the data frame so that it is sorted by day
> and then by depth?
See ?order and the mailing list archives.
Uwe Ligges