Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summary.factor

Tabulates observed values and calculates entropy


Description

This adapts code from R base summary.factor. It adds the calculation of entropy as a measure of diversity.

Usage

## S3 method for class 'factor'
summary(y)

Arguments

y

a factor (non-numeric variable)

Value

A list, including the summary table and vector of summary stats if requested.

Author(s)

Paul E. Johnson <pauljohn@ku.edu>


rockchalk

Regression Estimation and Presentation

v1.8.144
GPL (>= 3.0)
Authors
Paul E. Johnson [aut, cre], Gabor Grothendieck [ctb]
Initial release
2019-03-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.