alts_diversity_count | R Documentation |
egor
object.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.
alts_diversity_count(object, alt.attr)
alts_diversity_entropy(object, alt.attr, base = 2)
object |
An |
alt.attr |
A |
base |
|
A tibble
with the ego ID and a numeric
result vector.
MichaĆ Bojanowski, michal2992@gmail.com
Till Krenz, egor@tillt.net
data("egor32")
alts_diversity_count(egor32, "age")
alts_diversity_entropy(egor32, "age")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.