composition {egor} | R Documentation |
Calculate the composition of alter attributes in an egor
object
Description
composition()
calculates the proportional or absolute composition of
alters for a given attribute/variable.
Usage
composition(object, alt.attr, absolute = FALSE)
Arguments
object |
An |
alt.attr |
A |
absolute |
|
Value
A tibble
with the ego ID and values per category of alt.attr
as numeric
columns.
Examples
data("egor32")
composition(egor32, "sex")
[Package egor version 1.24.2 Index]