Description Usage Arguments Citations
View source: R/collect_sleep.R
Collect fitbit sleep data
1 | collect_sleep(token, start_date = NULL, days_prior_to_start = 30)
|
token |
The token you received from 'fitbitr' function |
start_date |
The date that you want to start collecting the data in "YYYY-MM-DD" format. If 'NULL' (default) then it chooses yesterday. |
days_prior_to_start |
Days before 'start_date' that you want to collect data from. Default is 30 days. |
Much of the code in this function was learned from the excellent blog post https://www.r-bloggers.com/downloading-fitbit-data-histories-with-r/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.