y_team_stats: Get team scoring stats from Yahoo! Fantasy API.

View source: R/y_team_stats.R

y_team_statsR Documentation

Get team scoring stats from Yahoo! Fantasy API.

Description

Returns team or league stats depending on what type of key is provided as an argument to key.

Usage

y_team_stats(
  key = NULL,
  token_name = NULL,
  week = NULL,
  debug = FALSE,
  quiet = TRUE
)

Arguments

key

League key or team key as a string in the form "000.l.0000" or "000.l.0000.t.0".

token_name

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

week

Week of fantasy season to return. -Accepts 3 arguments: - 'current' returns current week of season. - An integer corresponding to a week of season. - If NULL will return aggregated season stats.

debug

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

quiet

Print function activity.

Value

A tibble


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