At least one of year or team must be specified for the function to run
Value
cfbd_ratings_sp()
- A data frame with 26 variables:
year
: integer.Season of the ratings.
team
: character.Team name.
conference
: character.Conference of the team.
rating
: double.SP+ rating.
ranking
: integer.Ranking in the SP+ ratings.
second_order_wins
: logical.Total second-order wins - Not available for recent seasons.
sos
: logical.Strength of schedule - Not available for recent seasons.
offense_ranking
: integer.Overall offense ranking.
offense_rating
: double.Overall offense rating.
offense_success
: logical.Offense success rating - Not available for recent seasons.
offense_explosiveness
: logical.Offense explosiveness rating - Not available for recent seasons.
offense_rushing
: logical.Offense rushing rating - Not available for recent seasons.
offense_passing
: logical.Offense passing rating - Not available for recent seasons.
offense_standard_downs
: logical.Offense standard downs rating - Not available for recent seasons.
offense_passing_downs
: logical.Offensive passing downs rating - Not available for recent seasons.
offense_run_rate
: logical.Offense rushing rate - Not available for recent seasons.
offense_pace
: logical.Offense pace factor - Not available for recent seasons.
defense_ranking
: integer.Overall defense ranking.
defense_rating
: double.Overall defense rating.
defense_success
: logical.Defense success rating - Not available for recent seasons.
defense_explosiveness
: logical.Defense explosiveness rating - Not available for recent seasons.
defense_rushing
: logical.Defense rushing rating - Not available for recent seasons.
defense_passing
: logical.Defense passing rating - Not available for recent seasons.
defense_standard_downs
: logical.Defense standard downs rating - Not available for recent seasons.
defense_passing_downs
: logical.Defensive passing downs rating - Not available for recent seasons.
defense_havoc_total
: logical.Total defensive havoc rate - Not available for recent seasons.
defense_havoc_front_seven
: logical.Defense havoc rate from front 7 players - Not available for recent seasons.
defense_havoc_db
: logical.Defense havoc rate from defensive backs - Not available for recent seasons.
special_teams_rating
: double.Special teams rating.
Examples
# \donttest{
try(cfbd_ratings_sp(year = 2018))
#> ── SP+ data from CollegeFootballData.com ───────────────────── cfbfastR 1.9.5 ──
#> ℹ Data updated: 2024-09-10 01:23:57 UTC
#> # A tibble: 131 × 29
#> year team conference rating ranking second_order_wins sos offense_ranking
#> <int> <chr> <chr> <dbl> <int> <dbl> <dbl> <int>
#> 1 2018 Alab… SEC 36.3 1 13.8 0.795 2
#> 2 2018 Geor… SEC 32.9 2 11.5 0.794 3
#> 3 2018 Clem… ACC 29.7 3 14 0.912 5
#> 4 2018 Okla… SEC 24.9 4 11.7 0.909 1
#> 5 2018 LSU SEC 24.2 5 9.1 0.75 30
#> 6 2018 Ohio… Big Ten 24.1 6 10.9 0.899 4
#> 7 2018 Aubu… SEC 23.6 7 8.2 0.761 19
#> 8 2018 Miss… SEC 23.2 8 8.7 0.791 32
#> 9 2018 Flor… SEC 23 9 9.7 0.813 15
#> 10 2018 Mich… Big Ten 22 10 10.3 0.867 25
#> # ℹ 121 more rows
#> # ℹ 21 more variables: offense_rating <dbl>, offense_success <dbl>,
#> # offense_explosiveness <dbl>, offense_rushing <dbl>, offense_passing <dbl>,
#> # offense_standard_downs <dbl>, offense_passing_downs <dbl>,
#> # offense_run_rate <dbl>, offense_pace <dbl>, defense_ranking <int>,
#> # defense_rating <dbl>, defense_success <dbl>, defense_explosiveness <dbl>,
#> # defense_rushing <dbl>, defense_passing <dbl>, …
try(cfbd_ratings_sp(team = "Texas A&M"))
#> ── SP+ data from CollegeFootballData.com ───────────────────── cfbfastR 1.9.5 ──
#> ℹ Data updated: 2024-09-10 01:23:57 UTC
#> # A tibble: 110 × 29
#> year team conference rating ranking second_order_wins sos offense_ranking
#> <int> <chr> <chr> <dbl> <int> <dbl> <dbl> <int>
#> 1 1970 Texa… SEC -1.7 51 NA NA 49
#> 2 1971 Texa… SEC -3.5 53 NA NA 55
#> 3 1972 Texa… SEC 3.7 47 NA NA 52
#> 4 1973 Texa… SEC 8.9 41 NA NA 36
#> 5 1974 Texa… SEC 14.9 25 NA NA 48
#> 6 1975 Texa… SEC 19.1 16 NA NA 43
#> 7 1976 Texa… SEC 20.8 10 NA NA 22
#> 8 1977 Texa… SEC 11.8 33 NA NA 11
#> 9 1978 Texa… SEC 8.2 42 NA NA 44
#> 10 1979 Texa… SEC 21.4 7 NA NA 38
#> # ℹ 100 more rows
#> # ℹ 21 more variables: offense_rating <dbl>, offense_success <dbl>,
#> # offense_explosiveness <dbl>, offense_rushing <dbl>, offense_passing <dbl>,
#> # offense_standard_downs <dbl>, offense_passing_downs <dbl>,
#> # offense_run_rate <dbl>, offense_pace <dbl>, defense_ranking <int>,
#> # defense_rating <dbl>, defense_success <dbl>, defense_explosiveness <dbl>,
#> # defense_rushing <dbl>, defense_passing <dbl>, …
try(cfbd_ratings_sp(year = 2019, team = "Texas"))
#> ── SP+ data from CollegeFootballData.com ───────────────────── cfbfastR 1.9.5 ──
#> ℹ Data updated: 2024-09-10 01:23:58 UTC
#> # A tibble: 2 × 29
#> year team conference rating ranking second_order_wins sos offense_ranking
#> <int> <chr> <chr> <dbl> <int> <lgl> <lgl> <int>
#> 1 2019 Texas SEC 12 1 NA NA 1
#> 2 2019 natio… NA 0.760 NA NA NA NA
#> # ℹ 21 more variables: offense_rating <dbl>, offense_success <lgl>,
#> # offense_explosiveness <lgl>, offense_rushing <lgl>, offense_passing <lgl>,
#> # offense_standard_downs <lgl>, offense_passing_downs <lgl>,
#> # offense_run_rate <lgl>, offense_pace <lgl>, defense_ranking <int>,
#> # defense_rating <dbl>, defense_success <lgl>, defense_explosiveness <lgl>,
#> # defense_rushing <lgl>, defense_passing <lgl>, defense_standard_downs <lgl>,
#> # defense_passing_downs <lgl>, defense_havoc_total <lgl>, …
# }