-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
https://github.com/noamross/zero-dependency-problems/blob/master/R/table-percentages.md
categorytype A B
1 30 79
2 12 94
3 29 6As you can see the table counts frequencies, but I want it to calculate the percentages instead. I have tried
prop.tablebut I get the following errorError in FUN(X[[1L]], ...) : only defined on a data frame with all numeric variables
I couldn't find a solution anywhere else; please help. Thank you.
Here's my sample data:
head(items)
item type category[1] PA100 1 A
[2] PB101 2 A
[3] UR360 2 A
[4] PX977 3 B
[5] GA008 3 B>
[6] GR446 3 A>
Metadata
Metadata
Assignees
Labels
No labels