y_draft_results: Get draft results data from Yahoo! Fantasy API

y_draft_resultsR Documentation

Get draft results data from Yahoo! Fantasy API

Description

This function returns the draft results for a league or team key. Function accepts a vector of keys however they cannot be mixed. If a mixed type of key is provided the function will select the majority key type and query the uri using those keys.

Usage

y_draft_results(key = NULL, token_name = NULL, debug = FALSE, quiet = TRUE)

Arguments

key

A vector of league or team keys as strings in the form "000.l.0000" or "000.l.0000.t.0". Keys can be found with 'y_games()' and 'y_teams()'.

token_name

Assigned object name used when creating token with 'y_create_token()'.

debug

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

quiet

Print function activity.

Details

Oddly the only reference to the players this resource returns are the player keys and player ids so this function is best used in tandem with ‘y_players()' or having a local copy of a league’s player slate for joining player names.

Value

A tibble

Examples

# Not run
# y_draft_results("411.l.1239", my_token)


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