[R] how can i sort a column of data.frame ?

Dieter Menne dieter.menne at menne-biomed.de
Mon May 19 20:54:23 CEST 2008


hanen <hanen.mastouri <at> yahoo.fr> writes:

> 
> 
> i have a data.frame with several columns that i want to sort one of them (one
> column) by descending order
>  in such way that this sorting out  recover all colums. what should i do?

Maybe I missed something special you need, because I don't fully understand what
"recover all columns" means. Try first with the description in the FAQ:

<http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-sort-the-rows-of-a-data-frame_003f>

Dieter Menne



More information about the R-help mailing list