A version of prop.table that takes any R object that the 'table' function will accept. This, like object_size, is a convenience function so that you don't have to always type prop.table(table(object)). This function allows you to specify the margin of the table as the LAST unnamed argument, meaning that the function works if every argument you pass *after* margin is named. Of course, you can explicitly pass 'margin = n' and then everything should work as expected. For now, if you pass margin as an unnamed argument, it cannot be a vector (unlike in prop.table).
1 2 3 4 5 6 7 8 |
... |
one or more objects which can be parsed by the base table function |
margin |
index to generate margin for |
exclude |
levels to remove for all factors in |
useNA |
whether to include |
dnn |
the names to be given to the dimensions in the result (the dimnames names). |
deparse.level |
controls how the default |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.