get_indexes: Get index of combinations

View source: R/utils.R

get_indexesR Documentation

Get index of combinations

Description

This function is used in combination with get_combinations() and it derives the indexes of the time-to-exhaustion trials in the different combinations.

Usage

get_indexes(
  .data,
  power_output_column,
  time_to_exhaustion_column,
  combinations
)

Arguments

.data

A data frame containing a power output column and their respective time-to-exhaustion.

power_output_column

The name of the power output column. This value has to be in watts. Default to "PO".

time_to_exhaustion_column

The name of the time-to-exhaustion column. This value has to be in seconds. Default to "TTE".

combinations

The data derived from get_combinations().

Value

a tibble

Examples

combinations <- get_combinations(demo_critical_power, "PO", "TTE")

results_index <- get_indexes(demo_critical_power, "PO", "TTE", combinations)

results_index

fmmattioni/cyclingtools documentation built on March 28, 2022, 5:33 p.m.