get_attr_prop: Proportional Table of Vertex Attributes

View source: R/net.fn.utils.R

get_attr_propR Documentation

Proportional Table of Vertex Attributes

Description

Calculates the proportional distribution of each vertex attribute contained in a network.

Usage

get_attr_prop(dat, nwterms, attrs = NULL)

Arguments

dat

Main netsim_dat object containing a networkDynamic object and other initialization information passed from netsim().

nwterms

Vector of attributes on the network object, usually as output of get_formula_term_attr(). If NULL, no table is made.

attrs

Optional character vector of attribute names to restrict the tables to. If NULL (default), every nodal attribute is tabled.

Value

A list of proportional tables, one for each nodal attribute (or each one named in attrs), other than active, entrTime, exitTime, infTime, group, status, na, and vertex.names. Returns NULL if nwterms is NULL.

See Also

get_formula_term_attr(), copy_nwattr_to_datattr(), auto_update_attr().


EpiModel documentation built on Oct. 16, 2026, 5:07 p.m.