get_profiles: Converts multiple energy dataframes into heart rate profiles

Description Usage Arguments Value See Also Examples

Description

Scales final profiles into 3 regions. If unable to create profiles from some dataframes the profile is not included and a warning is supplied.

Usage

1
2
3
get_profiles(energy_dfs, buffer_start, buffer_end, scale, rest_sec = 180,
  norm = FALSE, norm_resting = FALSE, all_activities = TRUE,
  time_threshold = 15, rest_threshold = 5)

Arguments

energy_dfs

list of energy data frames such as returned by load_tcx_file

buffer_start

The number of seconds before activity included in profile

buffer_end

The number of seconds after activity included in profile

scale

The number of data points in each third of the final profile

rest_sec

The number of seconds in initial resting part of final profile. Must be less than buffer_end

norm

Normalise profile heart rates between 0 and 1

all_activities

Finds profiles for all activities in the energy dataframes or else finds only the first activity in each dataframe

time_threshold

The minumum number of seconds duration for an activity

rest_threshold

The maximum number of resting seconds within and activity

Value

List containing profiles See get_profile for a description of profile.

See Also

load_tcx_dir for a description of an energy dataframe.

Other profile functions: aggregate_profiles, get_profile, normalise

Examples

1
2
3
get_profiles(df, 500, 500, 500)
get_profiles(df, 200, 200, 1000, norm = TRUE)
get_profiles(df, 1500, 500, 100, rest_sec = 80, all_activities = FALSE)

VCCRI/CardiacProfileR documentation built on May 25, 2019, 2:22 p.m.