search_onsets: Searches for movement onsets and returns time since start for...

View source: R/navr-onsets.R

search_onsetsR Documentation

Searches for movement onsets and returns time since start for each event

Description

Searches for movement onsets and returns time since start for each event

Usage

search_onsets(obj, speed_threshold, min_duration, ...)

## S3 method for class 'navr'
search_onsets(
  obj,
  speed_threshold,
  min_duration = 0,
  still_speed_threshold = speed_threshold,
  still_duration = 0,
  pause_duration = 0
)

Arguments

obj

Valid object

speed_threshold

what is the speed considered to be the moving speed

min_duration

in secouds how long should the person be moving

...
still_speed_threshold

what is considered to be the still speed threshold. Defualts to 'speed_threshold“

still_duration

how long before the onset should hte person be still in seconds. Defaults to 0

pause_duration

how long "non" moving can the person be to allow still counting as an onset? In seconds. Defaults to 0

Value

list with times, time since start, and durations of movement epochs

Methods (by class)

  • navr: Searches onsets in navr object. THe navr object has to have calculated speeds, times etc.


hejtmy/navr documentation built on March 3, 2023, 5:24 p.m.