net_att_swap | R Documentation |
To swap the attributes of a single network object
net_att_swap(net_to_swap, attribute, swaps, verbose = FALSE)
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. |
A network object with the attribute swapped a number of times equal to swaps.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.