makeSleepDataMatrix {mMARCH.AC} | R Documentation |
Make a sleep matrix based on the sleep onset and wake up time
Description
Make a sleep matrix (sleep=1 and wake=0) based on the sleep onset and wake up time for the purpose of calculating physical acitivy features during wake up time.
Usage
makeSleepDataMatrix(sleepFN, epochOut = 60, impute = TRUE, outputFN)
Arguments
sleepFN |
|
epochOut |
|
impute |
|
outputFN |
|
Value
Sleep matrix and messages of sleep data.
duplicatedays |
Duplicate days of sleep data if exists |
sleepproblem |
Invalid sleep data if exists |
sleep matrix (0/1) |
write the sleep matrix to a csv file specified by outputFN |