ff_starters: Get Starting Lineups

Description Usage Arguments Value Methods (by class) Examples

View source: R/0_generics.R

Description

This function returns a tidy dataframe with one row for every starter (and bench) for every week and their scoring, if available.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
ff_starters(conn, ...)

## S3 method for class 'espn_conn'
ff_starters(conn, weeks = 1:17, ...)

## S3 method for class 'flea_conn'
ff_starters(conn, week = 1:17, ...)

## S3 method for class 'mfl_conn'
ff_starters(conn, week = 1:17, season = NULL, ...)

## S3 method for class 'sleeper_conn'
ff_starters(conn, week = 1:17, ...)

Arguments

conn

the list object created by ff_connect()

...

other arguments (currently unused)

weeks

which weeks to calculate, a number or numeric vector

week

a numeric or one of YTD (year-to-date) or AVG (average to date)

season

the season of interest - generally only the most recent 2-3 seasons are available

Value

A tidy dataframe with every player for every week, including a flag for whether they were started or not

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
conn <- espn_connect(season = 2020, league_id = 1178049)
ff_starters(conn, weeks = 1:3)



conn <- fleaflicker_connect(season = 2020, league_id = 206154)
ff_starters(conn)



dlf_conn <- mfl_connect(2020, league_id = 37920)
ff_starters(conn = dlf_conn)



jml_conn <- sleeper_connect(league_id = "522458773317046272", season = 2020)
jml_starters <- ff_starters(jml_conn)

ffscrapr documentation built on June 12, 2021, 5:07 p.m.