S3 methods for networkLite class, for generics defined in network package.
# 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)
An edgelist for as.edgelist.networkLite
; an updated
networkLite
object for the replacement method. The other
methods return no objects.
A networkLite
object.
The name of an attribute in x
.
Any additional arguments.
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.
Indices at which to set vertex attribute values.
edge indices to assign value
logical; omit missing edges from edge count?
Type of edgelist to output.
should missing edges be dropped from edgelist?
A networkLite
object.
Specification of a vertex attribute in object
as
described in nodal_attributes
.
Nodal indices (must be missing for networkLite method).
name(s) of edge attributes
should edges being assigned to be added if not already present?
Vector of tails of edges to add to the networkLite.
Vector of heads of edges to add to the networkLite.
value(s) of edge attributes
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
type of matrix to return from
as.matrix.networkLite
number of vertices to add to the networkLite
list (of length nv
) of named lists of vertex attributes
for added vertices, or NULL
to indicate vertex attributes are
not being passed
logical; if x
is bipartite, should the new vertices
be added to the second mode?
networkLite objects
Allows use of networkLite objects in ergm_model
.