I have a data frame with a column I want to sort by, and the name is "Tcrg-C1"
When I run: df.sort<- df[order(-df$"Tcrg-C1"), ]
I get: Error in -df$"Tcrg-C1" : invalid argument to unary operator
When I run: df.sort<- df[order(-df$Tcrg-C1), ]
I get: Error in eval(quote(list(...)), env) : object 'C1' not found
and finally when I use backticks: df.sort<- df[order(-V.4$
Tcrg-C1), ]
I get: Error in -V.4$
Tcrg-C1 : invalid argument to unary operator
Any ideas how to make the computer sort on this column?
Thanks and happy holidays!