Learn R Programming

EpiModel (version 2.3.0)

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 get.edge.attribute(x, attrname, ...)

# S3 method for networkLite get.edge.value(x, attrname, ...)

# S3 method for networkLite set.edge.attribute( x, attrname, value, e = seq_len(network.edgecount(x, na.omit = FALSE)), ... )

# S3 method for networkLite set.edge.value( x, attrname, value, e = seq_len(network.edgecount(x, na.omit = FALSE)), ... )

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

# S3 method for networkLite network.edgecount(x, na.omit = TRUE, ...)

# S3 method for networkLite as.edgelist( x, attrname = NULL, output = c("matrix", "tibble"), na.rm = TRUE, ... )

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

# S3 method for networkLite [(x, i, j, names.eval = NULL, add.edges = FALSE) <- 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, ...)

as.networkLite(x, ...)

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

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

# S3 method for networkLite as.networkDynamic(object, ...)

# S3 method for networkLite as_tibble(x, attrnames = NULL, na.rm = TRUE, ...)

# S3 method for networkLite as.matrix( x, matrix.type = c("adjacency", "incidence", "edgelist"), attrname = NULL, ... )

# S3 method for networkLite is.na(x)

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

# S3 method for networkLite delete.edge.attribute(x, attrname, ...)

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

# S3 method for networkLite add.vertices(x, nv, vattr = NULL, last.mode = TRUE, ...)

# S3 method for networkLite +(e1, e2)

# S3 method for networkLite -(e1, e2)

Value

An edgelist for as.edgelist.networkLite; an updated

networkLite object for the replacement method. The other methods return no objects.

Arguments

x

A networkLite object.

attrname

The name of an attribute in x.

...

Any additional arguments.

value

The attribute value to set in vertex, edge, and network attribute setters; the value to set edges to (must be FALSE) for the networkLite replacement method.

v

Indices at which to set vertex attribute values.

e

edge indices to assign value

na.omit

logical; omit missing edges from edge count?

output

Type of edgelist to output.

na.rm

should missing edges be dropped from edgelist?

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).

names.eval

name(s) of edge attributes

add.edges

should edges being assigned to be added if not already present?

tail

Vector of tails of edges to add to the networkLite.

head

Vector of heads of edges to add to the networkLite.

vals.eval

value(s) of edge attributes

attrnames

vector specifying edge attributes to include in the tibble; may be logical, integer, or character vector, the former two being used to select attribute names from list.edge.attributes(x), and the latter being used as the attribute names themselves

matrix.type

type of matrix to return from as.matrix.networkLite

nv

number of vertices to add to the networkLite

vattr

list (of length nv) of named lists of vertex attributes for added vertices, or NULL to indicate vertex attributes are not being passed

last.mode

logical; if x is bipartite, should the new vertices be added to the second mode?

e1, e2

networkLite objects

Details

Allows use of networkLite objects in ergm_model.