k5cents / fflr

Get ESPN fantasy football data in R
https://k5cents.github.io/fflr/
GNU General Public License v3.0
21 stars 7 forks source link

Identify and format all scoring options #16

Open k5cents opened 3 years ago

k5cents commented 3 years ago

So far, we've just been using the applied total statistics. Aside from stat_correct(), the base level statistics are completely ignored.

The ESPNmythicalsports::get_player_stats() function uses tidyr::hoist() to just pull out the lower level stats and pivot them longer against the source and split. Packages for other languages might give some clue to what stat numbers mean what (see this npm package).

This is the last big component missing from #10 and might have to be pushed until after the initial CRAN milestone.

k5cents commented 2 years ago

The statId values for scoring settings have been manually identified and saved in stat_ids. However, there are still dozens of tracked statistics in the player entries that remain unidentified.