get_heart_rate_zones: Heart Rate Zones

View source: R/heart-rate.R

get_heart_rate_zonesR Documentation

Heart Rate Zones

Description

See https://dev.fitbit.com/build/reference/web-api/activity/ for more details.

Usage

get_heart_rate_zones(start_date, end_date = start_date)

Arguments

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

Value

A tibble of the date, the heart rate zone (zone), the minimum heart rate in that zone (min_hr), the maximum heart rate in that zone (max_hr), the minutes in that zone (minutes_in_zone), and the calories burned in that zone (calories_out)

Examples

## Not run: 
start_date <- lubridate::today() - lubridate::weeks(1)
end_date <- lubridate::today()

get_heart_rate_zones(start_date, end_date)

## End(Not run)

fitbitr documentation built on March 31, 2023, 9:10 p.m.