net_att_swap: net_att_swap

View source: R/att_swap.R

net_att_swapR Documentation

net_att_swap

Description

To swap the attributes of a single network object

Usage

net_att_swap(net_to_swap, attribute, swaps, verbose = FALSE)

Arguments

net_to_swap

An object of type network. This is the network you want the swaps to be conducted on. All characteristics of this network, aside from the attribute you want to swap, will be the same in the result.

attribute

A pre-defined attribute within net_to_swap. This is the attribute that already exists within the network object you want to randomize within the network. You must be able to call this attribute using net_to_swap%v%\\"attribute\\".

swaps

Integer. The number of swaps between nodes you want to conduct.

verbose

Logical. Would you like the function to display status messages? Defaults to FALSE.

Value

A network object with the attribute swapped a number of times equal to swaps.


Epsian/nattswap documentation built on March 29, 2022, 4:27 a.m.