as.data.frame.cascade: 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 cascade
as.data.frame(x, row.names = NULL, optional = FALSE,
...)
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".
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 data.frame.
Examples
Run this code
data(cascades)
as.data.frame(cascades)
Run the code above in your browser using DataLab