subset_cascade_time {NetworkInference} | R Documentation |
Subset a cascade object in time
Description
Remove each all events occurring outside the desired subset for each cascade in a cascade object.
Usage
subset_cascade_time(cascade, start_time, end_time, drop = TRUE)
Arguments
cascade |
cascade, object to subset. |
start_time |
numeric, start time of the subset. |
end_time |
numeric, end time of the subset. |
drop |
logical, should empty sub-cascades be dropped? |
Value
An object of class cascade, where only events are included that have
times start_time
<= t < end_time
.
Examples
data(cascades)
sub_cascades <- subset_cascade_time(cascades, 10, 20, drop=TRUE)
[Package NetworkInference version 1.2.4 Index]