split.network function

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

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

Split a network into subnetworks on a factor.

## 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.

Returns

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()

  • Maintainer: Pavel N. Krivitsky
  • License: GPL-3 + file LICENSE
  • Last published: 2024-11-05