Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nvattr.copy.network

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


ergm

Fit, Simulate and Diagnose Exponential-Family Models for Networks

v3.11.0
GPL-3 + file LICENSE
Authors
Mark S. Handcock [aut], David R. Hunter [aut], Carter T. Butts [aut], Steven M. Goodreau [aut], Pavel N. Krivitsky [aut, cre] (<https://orcid.org/0000-0002-9101-3362>), Martina Morris [aut], Li Wang [ctb], Kirk Li [ctb], Skye Bender-deMoll [ctb], Chad Klumb [ctb], Michał Bojanowski [ctb], Ben Bolker [ctb]
Initial release
2020-10-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.