multi_frag: Fragmentation of Mulitple Subjects

Description Usage Arguments Value Examples

View source: R/long_frag.R

Description

Fragmentation of Mulitple Subjects

Usage

1
2
multi_frag(counts, weartime, id = "ID", visit = "visit",
  thresh.lower = 100, bout.length = 1)

Arguments

counts

A data.frame of multiple (or 1) rows with 1441 or 1442 columns.

weartime

data.frame of same dimension as counts and must consist of 1's and 0's. If unspecified, assumed to be when counts > 0.

id

column name/variable in counts and weartime corresponding to an ID.

visit

column name/variable in counts and weartime corresponding to a visit. If not only one visit per id, set this to NULL

thresh.lower

Lower cut-off for count values in intensity range. Passed to accel.bouts

bout.length

minimum length of an activity bout. Passed to accel.bouts

...

additional arguments passed to accel.bouts

Value

List of mean rest bout, mean activity bout, the total data, and the reciprocal of the bouts

Examples

1
2
3
counts = example_activity_data$counts
weartime = example_activity_data$weartime
res = multi_frag(counts, weartime = weartime, thresh.lower = 100)

muschellij2/fragmentation documentation built on May 27, 2019, 8:46 a.m.