summary.factor | R Documentation |
This adapts code from R base summary.factor. It adds the calculation of entropy as a measure of diversity.
## S3 method for class 'factor' summary(y)
y |
a factor (non-numeric variable) |
A list, including the summary table and vector of summary stats if requested.
Paul E. Johnson pauljohn@ku.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.