getSquadMatchScores: Return a dataframe that contains squad level scores and...

getSquadMatchScoresR Documentation

Return a dataframe that contains squad level scores and ratios for a given match ID

Description

Return a dataframe that contains squad level scores and ratios for a given match ID

Usage

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

Arguments

matches

'IMPECT' match IDs

token

bearer token

host

host environment

Value

a dataframe containing the scores and rations aggregated per squad for the given match ID

Examples

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

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

## End(Not run)

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