Description Usage Arguments Value Examples
Drop nodes from a cascade object
1 | drop_nodes(cascades, nodes, drop = TRUE)
|
cascades |
cascade, object to drop nodes from. |
nodes |
character or integer, vector of node_ids to drop. |
drop |
logical, Should empty cascades be dropped. |
An object of class cascade containing the cascades without the dropped nodes.
1 2 3 4 | data(policies)
cascades <- as_cascade_long(policies, cascade_node_name = 'statenam',
event_time = 'adopt_year', cascade_id = 'policy')
new_cascades <- drop_nodes(cascades, c("California", "New York"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.