R: Copy network- and vertex-level attributes between two network...

nvattr.copy.network {ergm} | R Documentation

## Copy network- and vertex-level attributes between two network objects

### Description

An internal ergm utility function to copy the network-level attributes and vertex-level attributes from one `network` object to another, ignoring some standard properties by default.

### Usage

    nvattr.copy.network(to, from, ignore = c("bipartite", "directed",
                                             "hyper", "loops", "mnext",
                                             "multiple", "n"))

### Arguments

`to` | the `network` that attributes should be copied to
`from` | the `network` that attributes should be copied to
`ignore` | vector of charcter names of network attributes that should not be copied. Default is the standard list of network properties created by `network.initialize`

### Value

returns the `to` network, with attributes copied from `from`

### Note

does not check that networks are of the same size, etc

### See Also

`set.vertex.attribute`, `set.network.attribute`

[Package ergm version 3.8.0 Index]