Learn R Programming

spiro (version 0.2.3)

set_protocol: Setting an exercise testing profile

Description

set_protocol() allows to set a load profile for an exercise test based on profile sections.

Usage

set_protocol(...)

pt_pre(duration)

pt_wu(duration, load, rest.duration = 0)

pt_steps( duration, load, increment, count, rest.duration = 0, last.duration = NULL )

pt_const(duration, load, count, rest.duration = 0, last.duration = NULL)

Value

A data.frame with the duration and load of each protocol step.

Arguments

...

Functions related to sections of the load profile, such as pt_pre, pt_wu, pt_const or pt_step. Sections will be evaluated in the order they are entered.

duration

A number, giving the duration of the test section or a single load within the test section (in seconds).

load

A number, giving the (initial) load of a section.

rest.duration

A number, specifying the duration of (each) rest (in seconds).

increment

A number, giving the difference in load between the current and the following load step.

count

An integer for the number of load sections.

last.duration

A number, giving the duration of the last load step (in seconds).

Functions

  • pt_pre(): Add pre-measures to a load protocol

  • pt_wu(): Add a warm up to a load protocol

  • pt_steps(): Add a stepwise load protocol

  • pt_const(): Add a constant load protocol

See Also

set_protocol_manual for manual protocol design.

get_protocol for automated extracting of protocols from raw data.

Examples

Run this code
set_protocol(pt_pre(60), pt_wu(300, 100), pt_steps(180, 150, 25, 8, 30))

Run the code above in your browser using DataLab