Skip to content
Prev 30304 / 398506 Next

How to sort a dataframe?

How does one sort a dataframe on multiple columns, say you first sort 
on variable 1 and then on variable 2, etc.? Is there a simple, one-
liner to do this?

thanks,
Ravi.

----- Original Message -----
From: Spencer Graves <spencer.graves at pdf.com>
Date: Monday, April 7, 2003 2:07 pm
Subject: Re: [R] How to sort a dataframe?