getPlayerProfileScores: Return a dataframe that contains all player profile scores...

getPlayerProfileScoresR Documentation

Return a dataframe that contains all player profile scores for a given iteration ID

Description

Return a dataframe that contains all player profile scores for a given iteration ID

Usage

getPlayerProfileScores(
  iteration,
  positions,
  token,
  host = "https://api.impect.com"
)

Arguments

iteration

'IMPECT' iteration ID

positions

list of position names. Must be one of: "GOALKEEPER", "LEFT_WINGBACK_DEFENDER", "RIGHT_WINGBACK_DEFENDER", "CENTRAL_DEFENDER", "DEFENSE_MIDFIELD", "CENTRAL_MIDFIELD", "ATTACKING_MIDFIELD", "LEFT_WINGER", "RIGHT_WINGER", "CENTER_FORWARD"

token

bearer token

host

host environment

Value

a dataframe containing the player profilescores aggregated per player for the given iteration ID and list of positions

Examples

# Toy example: this will error quickly (no API token)
try(player_profile_scores <- getPlayerProfileScores(
  iteration = 0,
  positions = c("INVALID_POSITION_1", "INVALID_POSITION_2"),
  token = "invalid"
))

# Real usage: requires valid Bearer Token from `getAccessToken()`
## Not run: 
player_profile_scores <- getPlayerProfileScores(
  iteration = 1004,
  positions = c("CENTRAL_DEFENDER", "DEFENSE_MIDFIELD"),
  token = "yourToken"
)

## End(Not run)

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