rank r descending code example
Example 1: sort in descending order in r
#sort by mpg (ascending) and cyl (descending)
newdata <- mtcars[order(mpg, -cyl),]
Example 2: detect rank deficient in r
caret::findLinearCombos
#sort by mpg (ascending) and cyl (descending)
newdata <- mtcars[order(mpg, -cyl),]
caret::findLinearCombos