Learn R Programming

ActisoftR (version 0.0.2)

portion_withoverlaps: Slices a data.frame containing date-time type columns including overlaping periods.

Description

Slices a data.frame containing date-time type columns including overlaping periods.

Usage

portion_withoverlaps(x, from, to, tz = "UTC", ...)

Arguments

x

a dataframe

from

a vector of lenght = participants

to

a vector of lenght = participants

tz

is the time zone

...

Optional parameters

Value

a dataframe

Details

it does include overlaps periods: periods that started (ended) before (after) start.period (end.period)

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab