Skip to contents

At least one of year or team must be specified for the function to run

Usage

cfbd_ratings_sp(year = NULL, team = NULL)

Arguments

year

(Integer optional): Year, 4 digit format (YYYY)

team

(String optional): D-I Team

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.3 ──
#>  Data updated: 2022-09-23 03:23:33 UTC
#> # A tibble: 131 × 29
#>     year team       confe…¹ rating ranking secon…²   sos offen…³ offen…⁴ offen…⁵
#>    <int> <chr>      <chr>    <dbl>   <int>   <dbl> <dbl>   <int>   <dbl>   <dbl>
#>  1  2018 Alabama    SEC       36.3       1    13.8 0.795       2    50.9    136.
#>  2  2018 Georgia    SEC       32.9       2    11.5 0.794       3    45.9    123.
#>  3  2018 Clemson    ACC       29.7       3    14   0.912       5    43      120.
#>  4  2018 Oklahoma   Big 12    24.9       4    11.7 0.909       1    54      130.
#>  5  2018 LSU        SEC       24.2       5     9.1 0.75       30    34.8    103.
#>  6  2018 Ohio State Big Ten   24.1       6    10.9 0.899       4    44.4    121.
#>  7  2018 Auburn     SEC       23.6       7     8.2 0.761      19    36.9    102.
#>  8  2018 Mississip… SEC       23.2       8     8.7 0.791      32    34.6    112.
#>  9  2018 Florida    SEC       23         9     9.7 0.813      15    38.6    111.
#> 10  2018 Michigan   Big Ten   22        10    10.3 0.867      25    35.5    114.
#> # … with 121 more rows, 19 more variables: 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>,
#> #   defense_standard_downs <dbl>, defense_passing_downs <dbl>,
#> #   defense_havoc_total <dbl>, defense_havoc_front_seven <dbl>, …

  try(cfbd_ratings_sp(team = "Texas A&M"))
#> ── SP+ data from CollegeFootballData.com ───────────────────── cfbfastR 1.9.3 ──
#>  Data updated: 2022-09-23 03:23:33 UTC
#> # A tibble: 104 × 29
#>     year team      confer…¹ rating ranking secon…²   sos offen…³ offen…⁴ offen…⁵
#>    <int> <chr>     <chr>     <dbl>   <int>   <dbl> <dbl>   <int>   <dbl>   <dbl>
#>  1  1970 Texas A&M SEC        -1.7      48      NA    NA      47    25.5      NA
#>  2  1971 Texas A&M SEC        -3.5      50      NA    NA      52    17.2      NA
#>  3  1972 Texas A&M SEC         3.7      44      NA    NA      49    23.7      NA
#>  4  1973 Texas A&M SEC         8.9      38      NA    NA      34    32.6      NA
#>  5  1974 Texas A&M SEC        14.9      24      NA    NA      46    25.9      NA
#>  6  1975 Texas A&M SEC        19.1      16      NA    NA      41    28.1      NA
#>  7  1976 Texas A&M SEC        20.8      10      NA    NA      22    35.2      NA
#>  8  1977 Texas A&M SEC        11.8      31      NA    NA      11    38.7      NA
#>  9  1978 Texas A&M SEC         8.2      39      NA    NA      42    27.5      NA
#> 10  1979 Texas A&M SEC        21.4       7      NA    NA      36    32        NA
#> # … with 94 more rows, 19 more variables: 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>,
#> #   defense_standard_downs <dbl>, defense_passing_downs <dbl>,
#> #   defense_havoc_total <dbl>, defense_havoc_front_seven <dbl>, …

  try(cfbd_ratings_sp(year = 2019, team = "Texas"))
#> ── SP+ data from CollegeFootballData.com ───────────────────── cfbfastR 1.9.3 ──
#>  Data updated: 2022-09-23 03:23:33 UTC
#> # A tibble: 2 × 29
#>    year team        confe…¹ rating ranking secon…² sos   offen…³ offen…⁴ offen…⁵
#>   <int> <chr>       <chr>    <dbl>   <int> <lgl>   <lgl>   <int>   <dbl> <lgl>  
#> 1  2019 Texas       Big 12  12           1 NA      NA          1    38.7 NA     
#> 2  2019 nationalAv… NA       0.760      NA NA      NA         NA    28.3 NA     
#> # … with 19 more variables: 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>, defense_havoc_front_seven <lgl>, …
# }