Learn R Programming

acc (version 1.1.7)

readRawBatch: Reads multiple raw accelerometer data in a folder

Description

Reads multiple raw accelerometer data in a folder. This is a batch mode of the readRaw function.

Usage

readRawBatch(path,filetype)

Arguments

path
Path to a folder which contains accelerometer data in .dat or .csv format.
filetype
Specify whether the data to read is in dat or csv format. Options are either 'dat' or 'csv'. For example if filetype = 'csv' is specified, all csv data will be read and all other types in the same folder will be ignored. By defalt, it is assumed that all

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] } author{ Jaejoon Song } keyword{ accelerometer} examples{ ## ## Example ## # filepath to locate the raw accelerometer files dontrun{ mypath <- "C:/Accelerometry files" readRawBatch(mypath,filetype='csv') } }