Writes a per-epoch counts data frame to a SQLite .agd file (the
standard settings + data schema), readable by
read.agd.
Usage
write.agd(
data,
path,
epoch_length = 60,
start_time = NULL,
device_serial = "",
device_name = "wGT3XBT",
subject_name = "",
sample_rate = 30,
mode = 61
)Arguments
- data
Data frame with
timestamp(POSIXct) andaxis1,axis2,axis3; optionalsteps,luxandinclineOff/Standing/Sitting/Lying.- path
Output
.agdpath.- epoch_length
Epoch length in seconds (default 60).
- start_time
Recording start (POSIXct); defaults to the first timestamp.
- device_serial, device_name, subject_name, sample_rate, mode
Metadata for the settings table.
