getSubstitutions: Return a dataframe that contains all line-up changes for a...

getSubstitutionsR Documentation

Return a dataframe that contains all line-up changes for a set of given match IDs

Description

Return a dataframe that contains all line-up changes for a set of given match IDs

Usage

getSubstitutions(matches, token, host = "https://api.impect.com")

Arguments

matches

'IMPECT' match ID or a list of match IDs

token

bearer token

host

host environment

Value

a dataframe containing all line-up changes for a set of given match IDs

Examples

# Toy example: this will error quickly (no API token)
try(subs <- getSubstitutions(
  matches = c(0, 1),
  token = "invalid"
))

# Real usage: requires valid Bearer Token from `getAccessToken()`
## Not run: 
subs <- getSubstitutions(
  matches = c(84248, 158150),
  token = "yourToken"
)

## End(Not run)

impectR documentation built on Dec. 17, 2025, 5:09 p.m.