Last active
November 9, 2022 00:02
-
-
Save jthomasmock/24645bb156f74b186a3c9bae4225ff51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
raw_metrics <- espnscrapeR::get_espn_wr_metrics() | |
raw_metrics |> glimpse() | |
raw_metrics |> | |
group_by(gsis_id) |> | |
summarise(across(c(overall:rtm_targets, yds), mean), | |
across(ends_with("nm"), unique)) |> | |
mutate(score_rank = rank(overall), yds_rt = yds/rtm_routes) |> | |
filter(full_nm == "Chase Claypool") |> | |
select(full_nm, score_rank, overall:yac_score, yds_rt) | |
#> # A tibble: 1 × 7 | |
#> full_nm score_rank overall open_score catch_score yac_score yds_rt | |
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> | |
#> 1 Chase Claypool 240 55.2 57.4 46.8 54.2 1.79 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment