y_players: Get player data from Yahoo! Fantasy API.

y_playersR Documentation

Get player data from Yahoo! Fantasy API.

Description

This function is not intended to get all players in a league. To get all players in your league use the function 'y_player_slate()'.

Usage

y_players(
  key = NULL,
  token_name = NULL,
  start = 0,
  number_of_players = 100,
  quiet = TRUE,
  debug = FALSE,
  ...
)

Arguments

key

Game or league key as a string in the form "000" or 000.l.0000". Can be found with 'y_games()'.

token_name

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

start

Where to start the count in uris i.e. 50. Default is 0.

number_of_players

Number of players to return. Default is 100

quiet

Print function activity.

debug

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

...

Other URI filter arguments. See vignette for full list.

Details

This function is intended to get a subset of players i.e. top 100 players sorted by AR (actual rank).

Takes many filter and sort arguments via ... E.G. sort = 1 will return however many players you requested sorted by stat 1. See vignette for all possibilities.

Value

A tibble


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