Sort named list in R
I have a named list of thermal frequencies,
> list $`in the` [1] 67504 $`to the` [1] 36666 $`of the` [1] 79665 $`on the` [1] 31261 $`to be` [1] 25862 $`for the` [1] 28332
I want to sort them in descending order according to frequencies. How to do it? I tried sort, sort.list, order , but had errors stating that they did not accept this type of list.
+6
2 answers