time_center: Internal utility for ibiVizEdit that centers PPG and IBI...

Description Usage Arguments Value

View source: R/fct_input_and_process.R

Description

time_center takes a PPG and/or IBI file and centers it at the very start of a task file. The effect is to cut off any data prior to the initial time stamp and to set that value to 0, representing the start of the condition or conditions of interest.

Usage

1
time_center(x, time_col = "Time", timing_series = NULL)

Arguments

x

PPG or IBI data.frame

time_col

the name of the column in x that contains the time data

timing_series

the name of the vector that contains timestamps for the initial task and subsequent tasks. Must be formatted such that the element is the start of the first task/condition, the second element is the end of that task, the third is start of the second condition/task, the fourth is the end of that task and so on.

Value

a re-coded version of the inputs with new timing


dr-consulting/ibi_VizEdit documentation built on Jan. 1, 2021, 12:04 a.m.