Learn R Programming

ergm.ego (version 0.5)

as.egodata.network: Construct an Egocentric View of a Network

Description

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

Usage

# S3 method for network
as.egodata(object, special.cols = c("na",
  "vertex.names"), ..., egoIDcol = "vertex.names")

Arguments

object

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.

egoIDcol

The name of the vertex attribute containg unique ego IDs. Defaults to "vertex.names".

Value

An egodata object.

See Also

as.network.egodata, which performs the inverse operation (though drops the ties).

Examples

Run this code
# NOT RUN {
# See example(ergm.ego) and example(as.network.egodata).

# }

Run the code above in your browser using DataLab