get_baseline: Get Baseline Serve and Win Probabilities

Description Usage Arguments Value

View source: R/baseline.R

Description

Gets players current chances of winning point based on score at end

Usage

1
2
3
4
5
6
7
8
get_baseline(
  player1id,
  player2id = NULL,
  opponent1id,
  opponent2id = NULL,
  mens = TRUE,
  format = "bestof5"
)

Arguments

player1id.

ATP/WTA player id

player2id.

ATP/WTA player id (only used for doubles)

opponent1id.

ATP/WTA opponent id

opponent2id.

ATP/WTA opponent id (only used for doubles)

mens.

Logical TRUE if mens match, FALSE if womens

format.

Character ('bestof3', 'doubles', 'laver' or 'bestof5')

Value

data frame of player 1 and player 2 win probs


skoval/inmatch_api documentation built on Jan. 20, 2020, 4:14 a.m.