I have a table listing the proportion that each class takes up in a categorical variable. It is ordered alphabetically and I'd like to order it by size.
I tried to make it a data frame and then arrange that data frame by the proportions. But, it shows there is only one column.
When I called names(), the result is
[1] "format(prop.table(table(Category)), scientific = F)"
cat_prop <- as.data.frame(format(prop.table(table(Category)), scientific = F))
arrange(cat.prop)
This gets me the list of classes and their proportion. How do I arrange that by value?