ego_density | R Documentation |
This function uses an egor
object and calculates the density of all
the ego-centered networks listed in the 'egor' object. Instead of an
egor
object, alter and alter-alter data can be provided as lists
or data.frames
.
ego_density(object, ...)
## S3 method for class 'egor'
ego_density(object, weight = NULL, max.netsize = NULL, directed = FALSE, ...)
object |
An |
... |
arguments to be passed to methods |
weight |
|
max.netsize |
Optional parameter. Constant value used if the number of alters whose relations were collected is limited. |
directed |
logical indicating if the alter-alter relation data/ edges are directed or un-directed. |
returns a vector
of network density values.
data("egor32")
ego_density(egor32)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.