subset_cascade {NetworkInference} | R Documentation |
Select a subset of cascades from cascade object
Description
Select a subset of cascades from cascade object
Usage
subset_cascade(cascade, selection)
Arguments
cascade |
cascade, object to select from |
selection |
character or integer, vector of cascade_ids to select |
Value
An object of class cascade containing just the selected cascades
Examples
data(policies)
cascades <- as_cascade_long(policies, cascade_node_name = 'statenam',
event_time = 'adopt_year', cascade_id = 'policy')
cascade_names <- names(cascades$cascade_times)
subset_cascade(cascades, selection = cascade_names[1:10])
[Package NetworkInference version 1.2.4 Index]