readFitbit: Read Fitbit data files (json)

View source: R/readFitbit.R

readFitbitR Documentation

Read Fitbit data files (json)

Description

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.

Usage

  readFitbit(filename = NULL, desiredtz = "", configtz = NULL)

Arguments

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

Value

Data.frame with data converted to time series

Author(s)

Vincent T van Hees <v.vanhees@accelting.com>


GGIRread documentation built on Oct. 25, 2024, 5:06 p.m.