ar_example_data: Example Accelerometry Data

View source: R/estimate_rest.R

ar_example_dataR Documentation

Example Accelerometry Data

Description

Reads the example 12 hours of 30Hz wrist accelerometry data included in the package (the same recording as in the sleeper package), reconstructing the time stamps (stored rounded to the second) from the sample rate.

Usage

ar_example_data(n_hours = NULL)

Arguments

n_hours

number of hours of data to read (up to 12). NULL reads all of it.

Value

A tibble with columns time, X, Y, and Z, with the sample_rate attribute set to 30.

Examples

data = ar_example_data(n_hours = 0.01)
head(data)

rester documentation built on Nov. 13, 2026, 1:06 a.m.