Runs sleeper::estimate_sleep() on complete, time-ordered raw triaxial
acceleration. Input is converted to the timestamp-in-seconds format required
by sleeper before the model is called.
Usage
acti_sleeper(data, epoch = 30L, model_dir)
acti_calculate_sleeper(data, epoch = 30L, model_dir)Arguments
- data
A data frame containing timestamps and triaxial acceleration.
- epoch
Output epoch, in whole seconds or a string such as
"30 seconds"; seeactibase::acti_standardize_epoch().- model_dir
Directory containing the sleeper model files.