We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/noamross/zero-dependency-problems/blob/master/R/table-percentages.md
category type A B 1 30 79 2 12 94 3 29 6 As you can see the table counts frequencies, but I want it to calculate the percentages instead. I have tried prop.table but I get the following error Error 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>
category
type A B 1 30 79 2 12 94 3 29 6
As you can see the table counts frequencies, but I want it to calculate the percentages instead. I have tried prop.table but I get the following error
prop.table
Error 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>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/noamross/zero-dependency-problems/blob/master/R/table-percentages.md
The text was updated successfully, but these errors were encountered: