Learn R Programming

GGIR (version 1.8-1)

g.cwaread: Function to read .cwa-format files as produced by the accelerometer named 'Axivity'

Description

For reading .cwa-format data, if you have .wav format data then see function g.wavread

Usage

g.cwaread(fileName, start = 0, end = 0, progressBar = FALSE, desiredtz = c())

Arguments

fileName

filename (required)

start

start point for reading data, this can either be a timestamp "year-month-day hr:min:sec" or a page number (optional)

end

end point for reading data, this can either be a timestamp "year-month-day hr:min:sec" or a page number (optional)

progressBar

Is trigger to switch on/off the text progress bar. If progressBar is TRUE then the function displays the progress bar but it works slightly slower

desiredtz

Desired timezone, see documentation g.getmeta

Value

data

dataframe with timestamp, raw x, -y, and, -z acceleration values, temperature, battery and light

header

file header