The average opposition team point differential by position.

opponent_ranks(leagueId = ffl_id())

Arguments

leagueId

Numeric league ID or ESPN fantasy page URL. Defaults to getOption("fflr.leagueId"). Function fails if no ID is found.

Value

A data frame of team performance against position.

Examples

opponent_ranks()
#> # A tibble: 192 × 4
#>    position opponentProTeam  rank average
#>    <fct>    <fct>           <int>   <dbl>
#>  1 DS       ATL                32    21.5
#>  2 QB       ATL                19    18.1
#>  3 RB       ATL                 6    15.3
#>  4 WR       ATL                17    30.2
#>  5 TE       ATL                29    20.7
#>  6 KI       ATL                21     9  
#>  7 DS       BUF                 1    -4  
#>  8 QB       BUF                27    23.1
#>  9 RB       BUF                28    30.1
#> 10 WR       BUF                30    42.6
#> # ℹ 182 more rows