as.data.frame.activity: Convert an activity matrix to a data.frame

View source: R/readGT3X.R

as.data.frame.activityR Documentation

Convert an activity matrix to a data.frame

Description

Convert an activity matrix to a data.frame

Usage

## S3 method for class 'activity'
as.data.frame(x, ..., verbose = FALSE, add_light = FALSE)

Arguments

x

Object of class 'activity' (returned by read.gt3x)

...

not used

verbose

print diagnostic messages

add_light

add light data to the data.frame if data exists in the GT3X

Value

An object of class activity_df which is also a data.frame with the following attributes (and more)

  • subject_name : Subject name from info file

  • time_zone : Time zone from info file

  • missingness : Data frame with timestamps and the number of missing values associated.

See Also

Other gt3x-parsers: parse_gt3x_info(), print.gt3x_info(), read.gt3x()


read.gt3x documentation built on June 30, 2022, 9:06 a.m.