Skip to contents

Order Data Frame Decreasingly by one Column

Usage

orderDecreasinglyBy(df, column)

Arguments

df

data frame

column

name of column by which to order decreasingly.

Examples

(df <- data.frame(a = 1:3, b = 11:13))
#>   a  b
#> 1 1 11
#> 2 2 12
#> 3 3 13
orderDecreasinglyBy(df, "a")
#>   a  b
#> 1 3 13
#> 2 2 12
#> 3 1 11