Description Usage Arguments Details Value Examples
Slices a data.frame containing date-time type columns including overlaping periods.
1 | portion_withoverlaps(x, from, to, tz = "UTC", ...)
|
x |
a dataframe |
from |
a vector of lenght = participants |
to |
a vector of lenght = participants |
tz |
is the time zone |
... |
Optional parameters |
it does include overlaps periods: periods that started (ended) before (after) start.period (end.period)
a dataframe
1 2 3 4 | library("lubridate")
start.period <- ymd_hms("2017-12-10 12:00:00")
end.period <- ymd_hms("2017-12-12 12:00:00")
portion_withoverlaps(act[act$subject_ID==1,], from = start.period, to = end.period)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.