read_AG_IMU: File reading function for IMU files

Description Usage Arguments Value Examples

View source: R/Read_IMU.R

Description

File reading function for IMU files

Usage

1
2
3
read_AG_IMU(file, output_window_secs = 1, verbose = FALSE, skip = 10,
  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?

skip

Header length: Number of rows to skip when reading the file

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

1
2
3
4
5
6
7
8
imu_file <- system.file(
  "extdata",
  "example-IMU.csv",
  package = "AGread"
)

AG_IMU <- read_AG_IMU(imu_file)
head(AG_IMU)

AGread documentation built on Feb. 26, 2020, 5:12 p.m.