calc_fixie_teeth: Optimal teeth combination (Fixie)

View source: R/calc_fixie_teeth.R

calc_fixie_teethR Documentation

Optimal teeth combination (Fixie)

Description

calc_fixie_teeth calculates the optimal number of chainring (front) and cog (rear) teeth for a given gear ratio.

Usage

calc_fixie_teeth(ratio = 2.8, tol = 0.1, front = 31:59, rear = 14:21,
  nrow = 5)

Arguments

ratio

The desired gear ratio given as a positive numeral.

tol

Tolerance around which the specified gear ratio might deviate with 0.1 as default.

front

Range of the number of chainring teeth given as an integer vector.

rear

Range of the number of cog teeth given as an integer vector.

nrow

An integer indicating the maximal number of rows which should be returned by the function.

Details

The function keeps only teeth combinations resulting in gear ratios within the specified tolerance range. Secondly, it sorts the results by skid_2 in descending order.

Value

The function returns a dataframe with following columns:

  1. front The optimal number of chainring teeth (see Details).

  2. rear The optimal number of cog teeth (see Details).

  3. ratio The actual gear ratio.

  4. skid_1 The number of skid patches for single-legged skidders. See calc_skids for more details.

  5. skid_2 The number of skid patches for two-legged skidders. See calc_skids for more details.

Author(s)

Jannes Muenchow

Examples

calc_fixie_teeth(2.8, 5)

jannes-m/velo documentation built on May 23, 2023, 2:41 p.m.