Skip to contents

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.