Learn R Programming

EpiModel (version 2.5.0)

get_network_attributes: Get Network Attributes from a Network Object

Description

Gets all network attributes except "mnext" from its network argument.

Usage

get_network_attributes(x)

Value

Returns the named list of network attributes.

Arguments

x

An object of class network or networkLite.

Details

This function is used in EpiModel workflows to copy relevant network attributes from the network object to the netsim_dat object when initializing netsim runs.

Examples

Run this code
nw <- network_initialize(100)
get_network_attributes(nw)

Run the code above in your browser using DataLab