getPitch: Calculate pitch

View source: R/Process_ACC.R

getPitchR Documentation

Calculate pitch

Description

Calculate pitch

Usage

getPitch(
  X,
  Y,
  Z,
  window,
  time,
  frequency = NULL,
  standVar = NULL,
  standMin = NULL,
  standMax = NULL
)

Arguments

X

Vector of accelerometer X value

Y

Vector of accelerometer Y value

Z

Vector of accelerometer Z value

window

Size of moving window for estimating peaks, in seconds

time

Vector of POSIXct times, should use %H:%M:%OS if sampling frequency >1 Hz

frequency

Sampling frequency of data, in Hz, if missing the function will estimate frequency from time

standVar

Variable to use in standardizing pitch values, if desired

standMin

Minimum value in standVar for standarization

standMax

Maximum value in standVar for standarization


allisonglider/seabiRds documentation built on Feb. 14, 2025, 7:37 a.m.