I have the below df
df <-dput(l)
structure(list(l = c(7.4, 7, 6.7, 8.8, 7.3, 9.1, 7.7, 9.5, 7.5,
7.4, 6.7, 7.3, 7.5)), row.names = c("rankings_message_1", "rankings_message_2",
"rankings_message_3", "rankings_message_4", "rankings_message_5",
"rankings_message_6", "rankings_message_7", "rankings_message_8",
"rankings_message_9", "rankings_message_10", "rankings_message_11",
"rankings_message_12", "rankings_message_13"), class = "data.frame")
but I would like to add a column to rank the numbers (they are %) where the highest # would be labeled as rank 1 and so on.
I tried this but I get an error:
df$Rank <- rank(desc(df))