# Pielou’s Evenness for Nominal Variables

    library(nomiShape)

## Pielou’s Evenness for Nominal Variables

This vignette demonstrates how to compute Pielou’s evenness index for nominal variables using the `pielou_evenness` function from the `nomiShape` package. Pielou’s evenness quantifies how evenly individuals are distributed across categories in a nominal variable.

### Computing Pielou’s Evenness

    # Example usage of pielou_evenness
    pielou_evenness(categories, "animal")
    #> [1] 0.9981314

    # Example usage of pielou_evenness
    pielou_evenness(categories2, "animal")
    #> [1] 0.9462875

    # Example usage of pielou_evenness
    pielou_evenness(categories3, "animal")
    #> [1] 0.6553931