y_stats_categories: Get all existing stats categories for a game from the Yahoo!...

View source: R/y_stats_categories.R

y_stats_categoriesR Documentation

Get all existing stats categories for a game from the Yahoo! Fantasy API.

Description

Note not all stats that exist in a game will be used by your league.

Usage

y_stats_categories(
  game_key = NULL,
  token_name = NULL,
  debug = FALSE,
  quiet = TRUE
)

Arguments

game_key

2 or 3 digit number of the game your league is playing. Found with 'y_games()'.

token_name

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

debug

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

quiet

Print function activity.

Value

A nested tibble with a game_key column and nested stats column.


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