read_AG_IMU: File reading function for IMU files

View source: R/Read_IMU.R

read_AG_IMUR Documentation

File reading function for IMU files

Description

File reading function for IMU files

Usage

read_AG_IMU(
  file,
  output_window_secs = 1,
  verbose = FALSE,
  filter = TRUE,
  filter_hz = 35,
  output_vars = c("accelerometer", "temperature", "gyroscope", "magnetometer"),
  return_raw = FALSE
)

Arguments

file

character scalar giving the path to the IMU file

output_window_secs

the desired epoch length; defaults to one second

verbose

A logical scalar: Print processing updates?

filter

a logical scalar: Apply a low-pass filter to gyroscope data?

filter_hz

The cutoff for the low-pass filter

output_vars

character. IMU variables to include in output.

return_raw

logical. Return raw triaxial data?

Value

A dataframe giving processed IMU data in the specified epoch length

Examples

imu_file <- system.file(
  "extdata",
  "example-IMU.csv",
  package = "AGread"
)

AG_IMU <- read_AG_IMU(imu_file)
head(AG_IMU)


AGread documentation built on Sept. 13, 2022, 5:06 p.m.