hth_race: Head-to-Head Against Skiers in a Specific Race

Description Usage Arguments Examples

View source: R/head_to_head_race.R

Description

Compare results of ath1_name in a specific race (race_id) to the historical record of how ath1_name has performed against the particular opponents in that race. Serves as a slightly more "objective" way to judge whether ath1_name had a good, bad or average race.

Usage

1
2
3
hth_race(ath_names, race_id, num_opp = Inf, cutoff = 365 * 5,
  min_encounters = 1, measure = c("rank", "fispoints", "pb"),
  events = c("all", "maj_int"), restrict_by = NULL)

Arguments

race_id

integer

num_opp

integer; limit comparison to opponents in the top num_opp. Defaults to Inf meaning look at all opponents.

cutoff

integer; length of time in days to look at historical results

min_encounters

integer; minimum number of time ath1_name must have faced an opponent for the opponent to be included in the comparison

measure

character; one of "rank", "fispoints" or "pb"

restrict_by

currently unused

ath1_name

character

Examples

1
2
3
4
## Not run: 
x <- hth_race('DIGGINS Jessica',9232,num_opp = 30,min_encounters = 3,measure = 'pb')

## End(Not run)

joranE/statskier2 documentation built on May 19, 2019, 8:42 p.m.