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