egoR.density: Calculate the density for n+many ego-centered networks.

Description Usage Arguments Value Examples

Description

This function uses an 'egoR' object (list of data objects created by an egonetR import function) and calculates the density of all the ego-centered networks listed in the 'egoR' object.

Usage

1
egoR.density(egoR, weight = NULL, max.netsize = NULL, directed = FALSE)

Arguments

egoR

A list of six data objects, created by one of egonetR's import functions.

weight

Character naming a variable containing the weight values of relations.

max.netsize

Optional parameter. Only needed if the density information was only collected for a subsample of all alteri per network.

directed

logical indicating if the alter-alter relation data/ edges are directed or undirected.

Value

returns a vector of network density values.

Examples

1
2
data("egoR32")
egoR.density(egoR32)

tilltnet/egonetR documentation built on May 31, 2019, 1:46 p.m.