tidy_axes: Tidy axes to a long format

View source: R/tidy_axes.R

tidy_axesR Documentation

Tidy axes to a long format

Description

Tidy axes to a long format

Usage

tidy_axes(df, only_xyz = TRUE)

Arguments

df

An object with columns a time column 'X', 'Y', and 'Z' or an object of class 'AccData'

only_xyz

should the data be subset for only X/Y/Z values (and time)?

Value

A long data set with 'time', 'axis', and 'value'

Examples

file = system.file("extdata", "TAS1H30182785_2019-09-17.gt3x",
package = "SummarizedActigraphy")
res = read_actigraphy(file)
long = tidy_axes(res)

muschellij2/SummarizedActigraphy documentation built on April 9, 2024, 8:32 a.m.