collect_sleep: Collect fitbit sleep data

Description Usage Arguments Citations

View source: R/collect_sleep.R

Description

Collect fitbit sleep data

Usage

1
collect_sleep(token, start_date = NULL, days_prior_to_start = 30)

Arguments

token

The token you received from 'fitbitr' function oauth_token

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.

Citations

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/


vcannataro/ECfitbitR documentation built on Jan. 29, 2020, 9:13 p.m.