View source: R/collapse_gt3x.R
| collapse_gt3x | R Documentation |
read_gt3xCollapse data that were read using read_gt3x
collapse_gt3x(
AG,
filename = "gt3x file",
output_window_secs = 1,
filter = TRUE,
filter_hz = 35,
verbose = FALSE,
...
)
## S3 method for class 'RAW'
collapse_gt3x(
AG,
filename = "gt3x file",
output_window_secs = 1,
filter = TRUE,
filter_hz = 35,
verbose = FALSE,
method = c("legacy", "expanded"),
...
)
## S3 method for class 'IMU'
collapse_gt3x(
AG,
filename = "gt3x file",
output_window_secs = 1,
filter = TRUE,
filter_hz = 35,
verbose = FALSE,
method = c("legacy", "expanded"),
...
)
AG |
The object to collapse, inheriting from class "RAW" or "IMU" |
filename |
character. Filename to associate with the data. |
output_window_secs |
the desired epoch length; defaults to one second |
filter |
a logical scalar: Apply a low-pass filter to gyroscope data? |
filter_hz |
The cutoff for the low-pass filter |
verbose |
A logical scalar: Print processing updates? |
... |
Additional arguments. Currently unused. |
method |
the collapsing method to use |
A data frame of collapsed data
file <- system.file( "extdata", "example.gt3x", package = "AGread" ) data <- read_gt3x(file) head(collapse_gt3x(data$RAW)) head(collapse_gt3x(data$IMU))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.