define_region: Define region of interest

View source: R/utils.R

define_regionR Documentation

Define region of interest

Description

Define the region of interest for data analysis based on the accelerometer data timestamp.

Usage

define_region(data, start_time, end_time)

Arguments

data

An impactr_data object, as obtained with read_acc().

start_time, end_time

A character string with the start and end times of the region of interest in the "YYYY-MM-DD HH:MM:SS" format.

Value

An object of class impactr_data.

Examples

data <- read_acc(impactr_example("hip-raw.csv"))
define_region(
  data, start_time = "2021-04-06 15:45:00", end_time = "2021-04-06 15:46:00"
)

verasls/impactr documentation built on Aug. 14, 2022, 12:44 p.m.