read_AG_raw: File reading function for primary accelerometer files

View source: R/Read_Raw.R

read_AG_rawR Documentation

File reading function for primary accelerometer files

Description

File reading function for primary accelerometer files

Usage

read_AG_raw(
  file,
  output_window_secs = 1,
  calibrate = FALSE,
  verbose = FALSE,
  block = FALSE,
  return_raw = FALSE,
  ...
)

Arguments

file

A character scalar giving path to primary accelerometer file

output_window_secs

the desired epoch length; defaults to one second

calibrate

logical. Perform autocalibration using g.calibrate

verbose

A logical scalar: Print processing updates?

block

logical. Should file be read in blocks? Will be automatically invoked if file is larger than 2 GB.

return_raw

logical. Return raw triaxial data?

...

Arguments passed to read.csv in check_columns

Value

A dataframe giving processed raw data from the primary accelerometer in the specified epoch length

Examples

raw_file <- system.file(
  "extdata",
  "exampleRAW.csv",
  package = "AGread"
)

## suppress messages that indicate truncation when sampling
## rate and output window don't line up
AG_RAW <- suppressMessages(
  read_AG_raw(raw_file)
)
head(AG_RAW)


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