data.frame
The as.data.frame
method coerces its input to a data.frame
containing
x
's edges or vertices.
# S3 method for network
as.data.frame(
x,
...,
unit = c("edges", "vertices"),
na.rm = TRUE,
attrs_to_ignore = "na",
name_vertices = TRUE,
sort_attrs = FALSE,
store_eid = FALSE
)
an object of class network
additional arguments
whether a data.frame
of edge or vertex
attributes should be returned.
logical; ignore missing edges/vertices when constructing the data frame?
character; a vector of attribute names to
exclude from the returned data.frame
(Default:
"na"
)
logical; for unit="edges"
, should the
.tail
and the .head
columns contain vertex names as opposed
to vertex indices?
logical; should the attribute columns in the returned data frame be sorted alphabetically?
logical; for unit="edges"
, should the edge ID in
the network's internal representation be stored in a column
.eid
?