as.data.frame.cascade {NetworkInference} | R Documentation |
Convert a cascade object to a data frame
Description
Generates a data frame containing the cascade information in the cascade object.
Usage
## S3 method for class 'cascade'
as.data.frame(x, row.names = NULL, optional = FALSE,
...)
Arguments
x |
Cascade object to convert. |
row.names |
NULL or a character vector giving the row names for the data frame. Missing values are not allowed. |
optional |
logical. If TRUE, setting row names and converting column names (to syntactic names: see make.names) is optional. (Not supported) |
... |
Additional arguments passed to |
Value
A data frame with three columns. Containing 1) The names of
the nodes ("node_name"
) that experience an event in each cascade,
2) the event time ("event_time"
) of the corresponding node,
3) the cascade identifier "cascade_id"
.
Examples
data(cascades)
as.data.frame(cascades)
[Package NetworkInference version 1.2.4 Index]