[R] how to order a dataframe ?
spencer.graves at pdf.com
Wed May 7 18:47:55 CEST 2003
I've used 'order' successfully. Consider the following:
df1 <- data.frame(x=rnorm(9))
If you provide an example of what did not work, someone might be able to
Laurent Faisnel wrote:
> I've got a problem which seemed simple to me at first view, but which I
> haven't managed to solve yet. I have a dataframe, or a matrix, and I
> would like to order it along with one of the variables/columns. I tried
> to use order() but it remained quite unclear to me. How should I proceed ?
> Thanks in advance (I guess that's not very difficult a question for most
> of you)
> R-help at stat.math.ethz.ch mailing list
More information about the R-help