Skip to contents

Returns match-up stats and results for a given teams and weeks. Option to provide a week agrument which will return data for that week. Default NULL will return all past and current weeks of season. Vector of weeks also accepted.

Usage

y_matchups(
  team_key = NULL,
  token_name = NULL,
  week = NULL,
  debug = FALSE,
  quiet = TRUE
)

Arguments

team_key

A string in the form "000.l.0000.t.00". Team key can be found with `y_teams()`.

token_name

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

week

Week of fantasy season to return. Default NULL will return all past and current weeks of season.

debug

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

quiet

Print function activity.

Value

A tibble

Details

Only past or current match-ups will be returned.