Tabulates observed values and calculates entropy
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>
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.