mfl_draft: Get ADP or AAV data from MyFantasyLeague

mfl_draftR Documentation

Get ADP or AAV data from MyFantasyLeague

Description

This function scrapes ADP or AAV data from MyFantasyLeague. More details on the API available at https://api.myfantasyleague.com/2023/api_info?STATE=details

Usage

mfl_draft(
  metric = c("adp", "aav"),
  period = c("RECENT", "ALL", "DRAFT", "JUNE", "JULY", "AUG1", "AUG15", "START", "MID",
    "PLAYOFF"),
  format = c("All Leagues", "PPR", "Std"),
  nteams = c(12, 8, 10, 14, 16),
  is_keeper = c("No", "Keeper", "Rookie Only"),
  is_mock = c("No", "Mock", "All Leagues"),
  cutoff = 10
)

Arguments

metric

Indicated whether to pull ADP (default) or AAV

period

Includes metric for drafts following this time-period

format

Scoring system for receptions

nteams

Number of teams in the league

is_keeper

Whether or not the league is a keeper league and/or a rookie draft

is_mock

Whether or not it is a mock draft

cutoff

Includes players in at least __% of drafts. Default to 10% of drafts.

Value

A data.frame with the results.


FantasyFootballAnalytics/ffanalytics documentation built on April 6, 2024, 6:56 p.m.