get_within_networks function

Obtain the within-block networks defined by the block attribute.

Obtain the within-block networks defined by the block attribute.

Function to return a list of networks, each network representing the within-block network of a block.

get_within_networks(network, block, combined_networks = TRUE)

Arguments

  • network: a network object
  • block: a vector of integers representing the block of each node
  • combined_networks: a boolean indicating whether the between-block networks should be returned as a combined_networks object or not (default is TRUE)

Returns

a list of networks

Examples

# Load an embedded network object. data(toyNet) get_within_networks(toyNet, toyNet %v% "block")
  • Maintainer: Cornelius Fritz
  • License: GPL-3
  • Last published: 2025-02-24

Useful links

    Downloads (last 30 days):