ptable | R Documentation |
prop.table(table())
Wrapper for table()
and prop.table()
. Returns APA compliant percentage values from table data.
ptable(object, percent = TRUE, sort = TRUE, ...)
object |
An object to tabulate. |
percent |
logical. Return rounded percentage. |
sort |
logical. Return sorted table. |
... |
Other arguments passed to table. |
ptable()
returns a contingency table, an object of class "table", an array of integer values. See table.
ptable(c(1,1,1,2,2,3), percent=FALSE, sort=TRUE, useNA='always')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.