I'm able to sort dataframe column in R in ascending order. However, to sort the same in descending order, what is the correct approach?
Here marketValue is the name of the variable that holds the column Name.
Ex:
marketValue = 'MV_20220805'
df[order((df[,marketValue,])),]
Solution as suggested.
df[order((df[,marketValue,]),decreasing=TRUE),]