get_profile: Convert energy data frame into heart rate profile

Description Usage Arguments Value See Also Examples

Description

scales final profile into 3 regions. If unable to create profile from energy data frame nothing is returned and a warning supplied.

Usage

1
2
get_profile(energy_df, buffer_start, buffer_end, scale, rest_sec = 180,
  points = NULL)

Arguments

energy_df

A dataframe with "energy" format 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 of recovery included in initial recovery period

points

A list with start and end points of activities. If NULL then it will use start_end_points to caluculate the start and end points of the activity.

Value

Named list of heart rates (bpm) scaled into profile consiting of 3 regions :

See Also

load_tcx_file for format of input dataframe, start_end_points for more on start and end points of activities.

Other profile functions: aggregate_profiles, get_profiles, normalise

Examples

1
2
3
4
5
6
7
8
get_profile(df, 500, 500, 500)
get_profile(df, 200, 200, 500, rest_sec = 180)
get_profile(df, 100, 200, 500,
    points = list(
        "start_point" = 600,
        "end_point" = 1000
    )
)

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