Learn R Programming

EpiModel (version 2.2.1)

networkLitemethods: networkLite Methods

Description

S3 methods for networkLite class, for generics defined in network package.

Usage

# S3 method for networkLite
get.vertex.attribute(x, attrname, ...)

# S3 method for networkLite set.vertex.attribute(x, attrname, value, v = seq_len(network.size(x)), ...)

# S3 method for networkLite list.vertex.attributes(x, ...)

# S3 method for networkLite get.network.attribute(x, attrname, ...)

# S3 method for networkLite set.network.attribute(x, attrname, value, ...)

# S3 method for networkLite list.network.attributes(x, ...)

# S3 method for networkLite network.edgecount(x, ...)

# S3 method for networkLite as.edgelist(x, output = c("matrix", "tibble"), ...)

# S3 method for networkLite mixingmatrix(object, attr, ...)

# S3 method for networkLite [(x, i, j) <- value

# S3 method for networkLite print(x, ...)

# S3 method for networkLite network.naedgecount(x, ...)

# S3 method for networkLite add.edges( x, tail, head, names.eval = NULL, vals.eval = NULL, ..., check.unique = FALSE )

as.networkLite(x, ...)

# S3 method for network as.networkLite(x, ...)

# S3 method for networkLite as.networkLite(x, ...)

Arguments

x

a networkLite object.

attrname

the name of an attribute in x.

...

any additional arguments.

value

Value to set edges to (must be FALSE for networkLite method)

v

indices at which to set vertex attribute values.

output

Type of edgelist to output.

object

a networkLite object

attr

specification of a vertex attribute in object as described in nodal_attributes

i, j

Nodal indices (must be missing for networkLite method)

tail

vector of tails of edges to add to the networkLite.

head

vector of heads of edges to add to the networkLite.

names.eval

currently unsupported by add.edges.networkLite.

vals.eval

currently unsupported by add.edges.networkLite.

check.unique

should a check to ensure uniqueness of edges in the final edgelist be performed?

Details

Allows use of networkLite objects in ergm_model.