Skip to contents

Every game or league has a slate of players eligible to be on a team. This function gets them for you.

Usage

y_player_slate(key = NULL, token_name = NULL, debug = FALSE, quiet = TRUE)

Arguments

key

Game key or league key as a string in the form "000.l.0000". These ids can be found with `y_games()` and `y_teams()`.

token_name

Name used for assignment when creating token object with `y_create_token()`.

debug

Print uri and page counts to console as functions runs. Useful for debugging.

quiet

Print function activity.

Value

A tibble

Details

This function is not intended to get a subset of players, i.e. top 100 players. Use `y_players()` for that case.

Note: this function uses janitor::make_clean_names and as a result is a bit slow.