Skip to contents

This function gets scoreboard stats and results for a given league and week. It is similar to `y_matchups()` but takes a league key as opposed to a team key and returns league wide match-up data.

Usage

y_scoreboard(
  league_key = NULL,
  token_name = NULL,
  week = NULL,
  debug = FALSE,
  quiet = TRUE
)

Arguments

league_key

league as a string in the form "000.l.0000". League key can be found with `y_games()`.

token_name

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

week

A integer referring to a week of fantasy season to return. Default NULL will return current week of season.

debug

Returns a list of data uri call and content. Useful for debugging.

quiet

Print function activity.

Value

A tibble

Details

`y_scoreboard()` takes a league key and returns match-up data for all teams in requested week. `y_matchups()` takes a team key and returns match-up data for requested weeks and team.