acc_ageadjusted: Produce an activity dataset from raw data

Description Usage Arguments Value Examples

View source: R/ActiPro.R

Description

Produce an activity dataset from raw data

Usage

1
2
acc_ageadjusted(folder_location, age_data_file, nhanes_nonwear = TRUE,
  id_length = 7, agdFile = FALSE, dataTable = FALSE, metaData = TRUE)

Arguments

folder_location

location of (.csv) files

age_data_file

two column (.csv) file containing (id) and (age)

nhanes_nonwear

= TRUE, use NHANES non-wear thresholds

id_length

= 7, length of (id) variable in (age_data_file)

agdFile

= FALSE, agd file, not csv, if TRUE, overrides (dataTable) and (metaData) settings

dataTable

= FALSE, datatable format, post-processed with ActiLife

metaData

= TRUE, presence of metadata in headers of (.csv) file

Value

A data.table containing a variety of activity fields and wear time

Examples

1
acc <- acc_ageadjusted(folder_location, age_data_file, TRUE, 7, FALSE, TRUE)

eldinidle/ActiPro documentation built on June 26, 2018, 2:35 p.m.