Learn R Programming

acc (version 1.1.1)

readRawBatch: Reads multiple raw accelerometer data in a folder

Description

Reads multiple raw accelerometer data in a folder.

Usage

readRawBatch(path)

Arguments

path
Path to a folder which contains accelerometer data in .dat format.

Value

  • A folder `readfiles' is created inside the specified 'path'. In the folder, files are saved by the same filenames as in the raw data. For uni-axial accelerometer (GT1M), two columns are returned, consisting of: [TimeStamp,Counts] For tri-axial accelerometer (GT3X), four columns are returned, consisting of: [TimeStamp,x,y,z]

Examples

Run this code
##
## Example
##
# filepath to locate the raw accelerometer files
mypath <- "C:/Accelerometry files"
readRawBatch(mypath)

Run the code above in your browser using DataLab