[Solved] Rank instances by missing amount in descending order


In my comment I incorrectly remembered the name of the argument for changing the direction of an order result. The fix is simply to use the correct name:

> df[ order(rowSums(is.na(df)), decreasing=TRUE), ]
    x  y   z  v
4  NA NA  NA NA
3   6 NA  NA NA
6  NA 18 130 NA
10 NA 17  99 NA
5   7 14  NA 45
7   9 20  NA 25
9   4 12  NA 75
1   1 10 225 44
2   4 12 198 51
8  10 15 200 36

1

solved Rank instances by missing amount in descending order