add_phase: Function to overlay phase information on data

View source: R/read_WRAP.R

add_phaseR Documentation

Function to overlay phase information on data

Description

Function to overlay phase information on data

Usage

add_phase(x, times, labels = NULL)

Arguments

x

a 'sleep', 'activity', or 'stress' object produced by 'read_wrap'

times

a vector of UTC times that will serve as cutpoints an the 'startTimeInSeconds' variable. There should be one fewer 'times' than the desired number of phase to be produced.

labels

a vector of the same length as 'times' containing labels for the phases. Optional. If 'labels' is 'NULL' the phase labels will be 1, 2, 3, etc..


ICTatRTI/PersonAlytics documentation built on Dec. 13, 2024, 11:06 p.m.