window_epochs {toporanga} | R Documentation |
Moving window epoch generator
Description
Splits the event log into cumulative epochs, i.e., starting from the start up to selected number of final points.
Returns an object which has to be fed into epochs
argument of toporanga
function.
Usage
window_epochs(n, window, t)
Arguments
n |
number of epochs.
Silently capped to the number of events, if larger.
Inferred from |
window |
size of the moving window; if |
t |
optional event times, vector of a same length and order as the event log given to |
Value
A special function that can be passed to the epochs
argument of toporanga
function.
Note
If time is not given, event log must be sorted; otherwise, epochs will not make any sense.