| getPlayerMatchsums | R Documentation |
Return a dataframe that contains all player matchsums for a given match ID
getPlayerMatchsums(matches, token, host = "https://api.impect.com")
matches |
'IMPECT' match IDs |
token |
bearer token |
host |
host environment |
a dataframe containing the matchsums aggregated per player and position for the given match ID
# 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()`
## Not run:
player_match_sums <- getPlayerMatchsums(
matches = c(84248, 158150),
token = "yourToken"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.