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 = NULL, na.rm = TRUE, ...)
# 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
type of matrix to return from
as.matrix.networkLite