read_AG_raw: File reading function for primary accelerometer files

Description Usage Arguments Value Examples

View source: R/Read_Raw.R

Description

File reading function for primary accelerometer files

Usage

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

skip

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

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 Feb. 26, 2020, 5:12 p.m.