R table column order when including the empty string
- by Libo Cannici
I have a series of value that include the empty string
levels(mydata$phone_partner_products)
"" "dont_know" "maybe_interesting"
"not_interesting" "very_interesting" "very_not_interesting"
If I make a frequencies table I get this
table(mydata$phone_partner_products)
dont_know maybe_interesting
3752 226 2907
not_interesting very_interesting very_not_interesting
1404 1653 1065
How can I reorder the columns in a more meaningful way?
How can I rename the empty string "" level?
Thank you a lot in advance.