readFitbit | R Documentation |
Reads Fitbit data file (json) with sleep, steps or calories. Steps and calories are converted to 30 second resolution to match resolution of sleep data.
readFitbit(filename = NULL, desiredtz = "", configtz = NULL)
filename |
Character, filename (required) of json file |
desiredtz |
Character, timezone name where the accelerometer was worn. Timezone names are expected to be the timezone database names, e.g. Europe/London. See also: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones |
configtz |
Character, timezone name where the accelerometer was configured. Leave NULL if equal to desiredtz. Timezones name are expected to be the timezone database names, e.g. Europe/London. See also: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones |
Data.frame with data converted to time series
Vincent T van Hees <v.vanhees@accelting.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.