This function returns a tibble of player scores based on league rules

ff_playerscores(conn, season, week, ...)

# S3 method for mfl_conn
ff_playerscores(conn, season, week, ...)

Arguments

conn

the list object created by ff_connect()

season

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

week

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

...

other arguments (currently unused)

Value

A tibble of historical player scoring

Examples

dlf_conn <- mfl_connect(2020, league_id = 37920) ff_playerscores(conn = dlf_conn, season = 2019, week = "YTD")
#> # A tibble: 597 x 8 #> season week player_id player_name pos team points isAvailable #> <dbl> <chr> <chr> <chr> <chr> <chr> <chr> <chr> #> 1 2019 YTD 13593 Jackson, Lamar QB BAL 480.68 0 #> 2 2019 YTD 13130 McCaffrey, Christian RB CAR 469.20 0 #> 3 2019 YTD 12652 Thomas, Michael WR NOS 391.00 0 #> 4 2019 YTD 11244 Kelce, Travis TE KCC 369.80 0 #> 5 2019 YTD 12625 Elliott, Ezekiel RB DAL 355.70 0 #> 6 2019 YTD 12620 Prescott, Dak QB DAL 351.78 0 #> 7 2019 YTD 12626 Henry, Derrick RB TEN 351.60 0 #> 8 2019 YTD 13113 Watson, Deshaun QB HOU 342.08 0 #> 9 2019 YTD 10703 Wilson, Russell QB SEA 339.70 0 #> 10 2019 YTD 13319 Jones, Aaron RB GBP 337.90 0 #> # ... with 587 more rows