Learn R Programming

ergm.multi (version 0.2.1)

split.network: A split() method for network::network objects.

Description

Split a network into subnetworks on a factor.

Usage

# S3 method for network
split(x, f, drop = FALSE, sep = ".", lex.order = FALSE, ...)

Value

A network.list containing the networks. These networks will inherit all vertex and edge attributes, as well as relevant network attributes.

Arguments

x

a network::network object.

f, drop, sep, lex.order

see split(); note that f must have length equal to network.size(x).

...

additional arguments, currently unused.

See Also

network::get.inducedSubgraph()