Re: [R] Order a vector and move to new vector

2009-09-10 Thread Nandi
Try the following: Data <- read.table('Sample.txt', header=T) > Data IDUNAV 1 1694 999.89 2 1696 999.90 3 1694 999.87 4 1696 999.88 5 1694 999.84 6 1696 999.86 7 1694 999.82 8 1696 999.84 9 1694 999.79 10 1696 999.82 11 1694 999.71 12 1696 999.75 13 1694 999.69 14 16

[R] Order a vector and move to new vector

2009-09-10 Thread Conrad Addo
I currently have a data frame with a Fund ID and NAV value. Is it possible to order the data frame and move to separate columns in a new data frame or matrix in R without using a for loop? I suppose I'd like to use a built in function to make it faster because I will have around 60,000 entries to