alts_diversity_count: Calculate diversity measures on an egor object.
Description
alts_diversity_count() counts the categories of a variable present in the
networks of an egor object. alts_diversity_entropy() calculates the Shannon
entropy as a measurement for diversity of an alter attribute.
Usage
alts_diversity_count(object, alt.attr)
alts_diversity_entropy(object, alt.attr, base = 2)
Value
A tibble with the ego ID and a numeric result vector.
Arguments
object
An egor object.
alt.attr
A character naming the variable containing the alter-attribute.
base
Numeric, base value of logarithm for entropy calculation.