Description Usage Arguments Value Examples
Find the complement of a set of time periods in a set of epochs.
For illustration, let's use integers instead of time periods and
epochs. Suppose we have two intervals/periods, {[1, 3], [8, 10]}
;
their complement in the set {[0, ..., 12]}
is
{[0, 0], [4, 7], [11, 12]}
.
1 | complement_periods(periods, epochs, start_var, end_var)
|
periods |
A data frame with at least two columns,
|
epochs |
A data frame with at least one column,
|
start_var |
The variable (unquoted) which indicates when the time periods start. |
end_var |
The variable (unquoted) which indicates when the time periods end. |
A data frame of time periods with three columns:
period_id
(a sequential identifier), start_var
(first epoch in period) and end_var
(last epoch in period).
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.