calc_score: Calculate the score for a given segment

Description Usage Arguments Details Value Author(s)

Description

SCORE is calculated as MEDIAN + ELEVATION_STATS * 0.5 * CLIMB OR AVERAGE + ELEVATION_STATS * 0.5 * CLIMB

Usage

1
2
calc_score(statistics = "med", elevation_factor = 1,
  city_data_sets = data.frame(median = c(), average = c(), climb = c()))

Arguments

statistics

med or avg

elevation_factor

numeric between 0 and 5

city_data_sets

data.frame DF containing columns 'median', 'average' and 'climb'

Details

CLIMB shall represent the average slope of the segment

Value

city_data_sets with an an additional column 'score'

Author(s)

Sebastian Wolf


zappingseb/stravachaser documentation built on May 31, 2019, 5:38 a.m.