Learn R Programming

ActisoftR (version 0.0.2)

portion: #Slices a data.frame containing date-time type columns.

Description

#Slices a data.frame containing date-time type columns.

Usage

portion(x, from, to, ...)

Arguments

x

at dataframe

from

a vector of lenght = participants

to

a vector of lenght = participants

...

Optional parameters

Value

a dataframe

Details

it does not 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(act[act$subject_ID==1,], from = start.period,  to = end.period)


# }

Run the code above in your browser using DataLab