Get the athletes for an account. Inactive players will only be included if
includeInactive
parameter is set to TRUE.
Value
Response will be a data frame containing the athletes that match this query. Each athlete includes the following variables:
Column Name | Type | Description |
id | chr | athlete's unique ID |
name | chr | athlete's given name (First Last) |
active | bool | athlete is active (TRUE) |
teams | chr | team ids separated by "," |
groups | chr | group ids separated by "," |
external | chr | external properties will have a column of their name with the appropriate values for the athlete of NA if it does not apply |
Examples
if (FALSE) { # \dontrun{
# This is an example of how the function would be called. If you only wish to call active players,
# you don't need to provide any parameters.
df_athletes <- get_athletes()
# If you want to include all athletes, including inactive athletes, include the optional
# `includeInactive` parameter.
df_wInactive <- get_athletes( includeInactive = TRUE)
} # }