summary.factor: Tabulates observed values and calculates entropy

View source: R/summarize.R

summary.factorR Documentation

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 documentation built on Aug. 6, 2022, 5:05 p.m.