Coerce a TSN result to a data frame
Usage
# S3 method for class 'tsn'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
what = c("edges", "series"),
connected = FALSE,
...
)Arguments
- x
A
tsnresult.- row.names
Optional row names.
- optional
Ignored.
- what
Which table to return:
"edges"(the stable dyad schema, the default) or"series"(the tidy source time series, including the discretizedstatecolumn when the network uses states).- connected
Return only the retained edges? The edge table lists every evaluated dyad;
TRUEkeeps the rows whoseconnectedflag is set, i.e. the edges that survived theconnectrule. Ignored whenwhat = "series".- ...
Ignored.
