Skip to contents

Calculate predicted points using down and distance

Usage

cfbd_metrics_ppa_predicted(down, distance)

Arguments

down

(Integer required): Down filter

distance

(Integer required): Distance filter

Value

cfbd_metrics_ppa_predicted() - A data frame with 2 variables:

yard_line: integer.

Yards to goal

predicted_points: character.

Predicted points at in that down-distance-yardline scenario

Examples

# \donttest{
  try(cfbd_metrics_ppa_predicted(down = 1, distance = 10))
#> ── PPA data from CollegeFootballData.com ───────────────────── cfbfastR 2.0.0 ──
#>  Data updated: 2025-08-30 00:55:20 UTC
#> # A tibble: 90 × 2
#>    yard_line predicted_points
#>        <int>            <dbl>
#>  1        90             4.49
#>  2        89             4.48
#>  3        88             4.47
#>  4        87             4.46
#>  5        86             4.45
#>  6        85             4.44
#>  7        84             4.43
#>  8        83             4.42
#>  9        82             4.41
#> 10        81             4.4 
#> # ℹ 80 more rows

  try(cfbd_metrics_ppa_predicted(down = 3, distance = 10))
#> ── PPA data from CollegeFootballData.com ───────────────────── cfbfastR 2.0.0 ──
#>  Data updated: 2025-08-30 00:55:20 UTC
#> # A tibble: 90 × 2
#>    yard_line predicted_points
#>        <int>            <dbl>
#>  1        90             3.92
#>  2        89             3.89
#>  3        88             3.86
#>  4        87             3.83
#>  5        86             3.8 
#>  6        85             3.76
#>  7        84             3.72
#>  8        83             3.68
#>  9        82             3.63
#> 10        81             3.59
#> # ℹ 80 more rows
# }