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

View source: R/combine.networks.R

split.networkR Documentation

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

Description

Split a network into subnetworks on a factor.

Usage

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

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.

Value

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

See Also

network::get.inducedSubgraph()


ergm.multi documentation built on May 29, 2024, 11:07 a.m.