Re: [R] Output of order() incorrectly ordered?

2008-03-25 Thread Shirley Wu
problem only appeared in the output file). Once I removed the single quotes from my input files, everything worked fine. Thanks, Shirley On Mar 25, 2008, at 10:03 AM, Charles C. Berry wrote: > On Mon, 24 Mar 2008, Shirley Wu wrote: > >> Hello, >> >> I have a data frame co

[R] Output of order() incorrectly ordered?

2008-03-24 Thread Shirley Wu
Hello, I have a data frame consisting of four columns and would like to sort based on the first column and then write the sorted data frame to a file. > df <- read.table("file.txt", sep="\t") where file.txt is simply a tab-delimited file containing 4 columns of data (first 2 numeric, secon