get_sleep_stage_granular | R Documentation |
Returns a tibble of nightly sleep stage data. Very granular. Returns blocks of time spent in each phase.
get_sleep_stage_granular(start_date, end_date = start_date)
start_date |
The start date of records to be returned in "yyyy-mm-dd" or date(time) format |
end_date |
The end date of records to be returned in "yyyy-mm-dd" or date(time) format |
A tibble of granular sleep stage data. This method is more granular than get_sleep_stage_summary, and returns blocks of time that you spent in each zone throughout the night.
## Not run:
start_date <- lubridate::today() - lubridate::weeks(1)
end_date <- lubridate::today()
get_sleep_stage_granular(start_date, end_date)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.