y_matchups: Get match-up stats and results data from Yahoo! Fantasy API

View source: R/y_matchups.R

y_matchupsR Documentation

Get match-up stats and results data from Yahoo! Fantasy API

Description

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.

Details

Only past or current match-ups will be returned.

Value

A tibble


macraesdirtysocks/YFAR documentation built on March 20, 2022, 2:07 a.m.