Learn R Programming

impectR (version 2.5.3)

getPlayerMatchsums: Return a dataframe that contains all player matchsums for a given match ID

Description

Return a dataframe that contains all player matchsums for a given match ID

Usage

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

Value

a dataframe containing the matchsums aggregated per player and position for the given match ID

Arguments

matches

'IMPECT' match IDs

token

bearer token

host

host environment

Examples

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

# Real usage: requires valid Bearer Token from `getAccessToken()`
if (FALSE) {
player_match_sums <- getPlayerMatchsums(
  matches = c(84248, 158150),
  token = "yourToken"
)
}

Run the code above in your browser using DataLab