Skip to contents

Get FG expected points from CFBD API

Usage

cfbd_metrics_fg_ep()

Value

cfbd_metrics_fg_ep() - A data frame with 3 variables:

yards_to_goal: integer.

Yards to the goal line (0-100).

distance: integer.

Distance to goal posts from kicking location (17 yds further than yards to goal).

expected_points: double.

Expected points given yards to goal / distance.

Examples

# \donttest{
  try(cfbd_metrics_fg_ep())
#> ── FG expected points data from CollegeFootballData.com ────── cfbfastR 2.0.0 ──
#>  Data updated: 2025-08-25 19:40:35 UTC
#> # A tibble: 100 × 3
#>    yards_to_goal distance expected_points
#>            <int>    <int>           <dbl>
#>  1             0       17            2.85
#>  2             1       18            2.84
#>  3             2       19            2.82
#>  4             3       20            2.81
#>  5             4       21            2.79
#>  6             5       22            2.78
#>  7             6       23            2.75
#>  8             7       24            2.73
#>  9             8       25            2.71
#> 10             9       26            2.68
#> # ℹ 90 more rows
# }