zscore: zscore

Description Usage Arguments Value

Description

zscore

Usage

1
2
3
4
zscore(proj_list, hit_pitch, stat_direction = user_settings %>%
  magrittr::extract2(paste0(hit_pitch, "_higher_better")),
  is_rate = user_settings %>% magrittr::extract2(paste0(hit_pitch,
  "_rate")), limit_player_pool = TRUE)

Arguments

proj_list

named ('h', 'p') list of data frames, ie output of get_steamer

hit_pitch

'h' or 'p'

stat_direction

vector that flags if the stat is reverse-framed (lower = better). default behavior is to read from user_settings.

is_rate

vector that flags if the state is a rate stat. default behavior is to read from user_settings.

limit_player_pool

zscores relative to all players, or relative size of drafted player pool?

Value

list of data frames with stat zscores


almartin82/projprep documentation built on May 10, 2019, 9:57 a.m.