Displaying 1 result from an estimated 1 matches for "topflow".
Did you mean:
tcpflow
2010 Mar 09
3
sorting data whilst ignoring NA's
...A
[10,] 11 10 1945 NA
[11,] 12 10 1945 NA
[12,] 13 10 1945 NA
[13,] 14 10 1945 2.973
[14,] 15 10 1945 NA
I want to sort the data in descending order by flow but with all the NA
results sent to the bottom. I have managed to sort the data using:
topflows <- qdata[order(-flow, na.last=TRUE),]
But this sorts the data by flow value and then year I think giving:
day month year flow
[1,] 14 3 1947 222.40
[2,] 15 3 1947 NA
[3,] 18 3 1947 NA
[4,] 17 3 1947 NA
[5,] 19 3 1947 NA
[6,] 12 3 1947...