as.egor.network: Construct an Egocentric View of a 'network' Object

View source: R/egor.R

as.egor.networkR Documentation

Construct an Egocentric View of a network Object

Description

Given a network object, construct an egor object representing a census of all the actors in the network. Used mainly for testing.

Usage

## S3 method for class 'network'
as.egor(x, special.cols = c("na"), ...)

Arguments

x

A network object.

special.cols

Vertex attributes that should not be copied to the egos and alters tables. Defaults to attributes special to the network objects.

...

Additional arguments, currently unused.

Value

An egor object.

Author(s)

Pavel N. Krivitsky

See Also

template_network, which performs the inverse operation (though drops the ties).

Examples


# See example(ergm.ego) and example(template_network).

ergm.ego documentation built on May 31, 2023, 7:28 p.m.