count_dyads {egor} | R Documentation |
Count attribute combinations of dyads in ego-centered networks
Description
count_dyads()
counts the attribute combinations of alter-alter ties/ dyads
in ego-centered networks. The results can be returned as a wide or long
tibble
/ data.frame
.
Usage
count_dyads(
object,
alter_var_name,
return_as = c("wide", "long"),
prefix = NULL
)
Arguments
object |
An |
alter_var_name |
|
return_as |
|
prefix |
|
Value
Wide or long tibble
/ data.frame
.
Examples
data(egor32)
count_dyads(object = egor32,
alter_var_name = "country")
# Return result as long tibble.
count_dyads(object = egor32,
alter_var_name = "country",
return_as = "long")
[Package egor version 1.24.2 Index]