Skip to content

Commit 8cbf688

Browse files
authored
Merge pull request #97 from nflverse/draft_2025
update draft curves for 2020 draft
2 parents 5996d95 + 9330344 commit 8cbf688

File tree

16 files changed

+1422
-1353
lines changed

16 files changed

+1422
-1353
lines changed

.github/workflows/check-render.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ name: Check page rendering
99
jobs:
1010
render:
1111
name: Render Site
12-
runs-on: macOS-latest
12+
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: r-lib/actions/setup-r@v1
16-
- uses: r-lib/actions/setup-pandoc@v1
17-
- name: Install necessary packages
18-
run: |
19-
install.packages(c("rmarkdown", "distill", "dplyr", "tidyr", "jsonlite", "DT", "stringi"), dependencies = TRUE)
20-
shell: Rscript {0}
14+
- uses: actions/checkout@v4
15+
16+
- uses: r-lib/actions/setup-pandoc@v2
17+
18+
- uses: r-lib/actions/setup-r@v2
19+
with:
20+
use-public-rspm: true
21+
22+
- uses: r-lib/actions/setup-r-dependencies@v2
23+
with:
24+
packages: rmarkdown, distill, dplyr, tidyr, jsonlite, DT, stringi
25+
2126
- name: Render Site
2227
run: Rscript -e 'rmarkdown::render_site(encoding = "UTF-8")'

.github/workflows/render-site.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,26 @@ name: Seb's Render Site Action
1818
jobs:
1919
render:
2020
name: Render Site
21-
runs-on: macOS-latest
21+
runs-on: ubuntu-latest
2222
# The action itself will push to master. Make sure we don't run in a
2323
# loop triggering this action by itself
2424
if: "!contains(github.event.head_commit.message, 'gh-action-seb')"
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
2730
- uses: r-lib/actions/setup-r@v2
28-
- uses: r-lib/actions/setup-pandoc@v1
29-
- name: Install necessary packages
30-
run: |
31-
install.packages(c("rmarkdown", "distill", "dplyr", "tidyr", "jsonlite", "DT", "stringi"), dependencies = TRUE)
32-
shell: Rscript {0}
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
packages: rmarkdown, distill, dplyr, tidyr, jsonlite, DT, stringi
37+
3338
- name: Render Site
3439
run: Rscript -e 'rmarkdown::render_site(encoding = "UTF-8")'
40+
3541
- name: Commit results
3642
run: |
3743
git config --local user.email "actions@github.com"

_posts/2023-02-23-nfl-draft-value-chart/nfl-draft-value-chart.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Before moving forward, a thank you to the invaluable resource that [Over The Cap
6464

6565
**Updated on April, 2024**: Added 2019 draft class to on-field value calculations.
6666

67+
**Updated on May 2, 2025**: Added 2020 draft class to on-field value calculations.
68+
6769
# Part 1: Make a surplus value curve
6870

6971
In order to calculate the surplus value of each pick. We need two pieces of information. First, how much each pick costs (the contract); and second, how much benefit each pick provides (on-field performance).
@@ -148,7 +150,7 @@ This is pretty simple: take the APY in terms of percent of the cap for each draf
148150
```{r, echo = FALSE}
149151
150152
players <- nflreadr::load_contracts() %>%
151-
filter(between(draft_year, 2011, 2019)) %>%
153+
filter(between(draft_year, 2011, 2020)) %>%
152154
arrange(otc_id, year_signed) %>%
153155
group_by(otc_id) %>%
154156
dplyr::slice(1:2) %>%

0 commit comments

Comments
 (0)