Description Usage Arguments Examples
Expand time periods into a data frame of equally spaced time points
1 | expand_periods(periods, start_var, end_var, units = "1 min")
|
periods |
A data frame with at least two columns,
|
start_var |
The variable (unquoted) which indicates when the time periods start. |
end_var |
The variable (unquoted) which indicates when the time periods end. |
units |
The time unit as a characters string.
The default is |
1 2 3 4 5 6 7 | library("dplyr")
data("gtxplus1day")
gtxplus1day %>%
collapse_epochs(60) %>%
apply_choi(min_period_len = 45) %>%
expand_periods(period_start, period_end, units = "30 mins")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.