count_dyads | R Documentation |
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
.
count_dyads(
object,
alter_var_name,
return_as = c("wide", "long"),
prefix = NULL
)
object |
An |
alter_var_name |
|
return_as |
|
prefix |
|
Wide or long tibble
/ data.frame
.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.