I have a factor called all_factors. I want to get the percentages of the different levels in that factor.
For example, let's say all_factors has the levels: "a", "b", "c". So I would want something that would tell me 30% of the levels are "a", 20% are "b", and 50% are "c".