RA_long: Relative Amplitude for Whole Dataset

Description Usage Arguments Value Examples

View source: R/RA_long.R

Description

Relative Amplitude is a nonparametric metric reprsenting fragmentation of circadian rhtymicity. this function is a whole data wrapper for RA.

Usage

1
RA_long(count.data)

Arguments

count.data

data.frame of dimension n * 1442 containing the 1440 minute activity data for all n subject days. The first two columns have to be ID and Day.

Value

A data.frame with following columns

ID

identifier of the person

Day

indicator of which day of activity it is, can be a numeric vector of sequence 1,2,... or a string of date

RA

RA

#' @importFrom zoo rollapplyr

Examples

1
2
3
data(example_activity_data)
count.data = example_activity_data$count
ra_all = RA_long(count.data = count.data)

junruidi/actigraphy documentation built on Sept. 25, 2019, 7:48 a.m.