Learn R Programming

PAactivPAL (version 2.0)

Standard: Standard Physical Activity Summary

Description

Summarize standard activity measures

Usage

Standard(final_dat, bed_time, takeoff_time)

Arguments

final_dat
Raw event file, will be cleaned in this function. Event file is required for this function.
bed_time
Sleep and wake up time log, reported by participants. Log is not required for this function.
takeoff_time
Take on and off time log, reported by participants. Log is not required for this function.

Value

Year The calendar year of recorded eventMonth The calendar month of recorded eventDay The calendar day of recorded eventDayofweek The day of that weekWeekday_or_weekend The recored event date is a weekday or weekend (0 for weekday, 1 for weekend)hours_worn_total Total worn hourssed_hour Total sedantary hoursstand_hour Total stand hoursstep_hour Total step hoursstep_count_total Total Step countnum_hour_over_3_METs Number of hours that Metabolic Equivalent of Task (MET) is over 3MET_hours Total METsperc_sedentary Proportion of sedentaryperc_stand Proportion of standingperc_step Proportion of stepping

Details

All numbers are calculated in the given time period (day, hour, etc.). Total sedentary/standing/stepping hours are obtained from the summation of the duration times for sedentary/standing/stepping activities in the given time period.

Examples

Run this code
#For CRAN less than 5s running time policy, we only select the first day to run.
r1=Standard(sample_event[1:3095,],sample_bed_time[1,],sample_takeon_log[1,])
summary(r1)

Run the code above in your browser using DataLab