as.data.frame.cascade: Convert a cascade object to a data frame

Description Usage Arguments Value Examples

Description

Generates a data frame containing the cascade information in the cascade object.

Usage

1
2
3
## 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 data.frame.

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

1
2

flinder/NetworkInference documentation built on May 16, 2019, 1:20 p.m.