| as.matrix.cascade | R Documentation |
Generates a matrix containing the cascade information in the
cascade object in wide format. Missing values are used for nodes that do not
experience an event in a cascade.
## S3 method for class 'cascade'
as.matrix(x, ...)
x |
cascade object to convert. |
... |
additional arguments to be passed to or from methods. (Currently not supported.) |
A matrix containing all cascade information in wide format. That is,
each row of the matrix corresponds to a node and each column to a cascade.
Cell entries are event times. Censored nodes have NA for their entry.
data(cascades)
as.matrix(cascades)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.