networkLite
to a Matrix or tibble
.Convert a networkLite
to a Matrix or tibble
.
# S3 method for networkLite
as.edgelist(
x,
attrname = NULL,
output = c("matrix", "tibble"),
na.rm = TRUE,
...
)# S3 method for networkLite
as_tibble(
x,
attrnames = (match.arg(unit) == "vertices"),
na.rm = TRUE,
...,
unit = c("edges", "vertices")
)
# S3 method for networkLite
as.matrix(
x,
matrix.type = c("adjacency", "incidence", "edgelist"),
attrname = NULL,
...
)
A matrix
or tibble
(possibly of class edgelist
)
constructed from the networkLite
.
A networkLite
.
Name of an edge attribute in x
.
Type of edgelist to output.
should missing edges be dropped from edgelist?
additional arguments
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
whether to return attributes for edges or for vertices
type of matrix to return from
as.matrix.networkLite