preproc_data: preprocess data for nba models

Description Usage Arguments Value

View source: R/preproc_data.R

Description

preprocess data for nba models

Usage

1
2
3
4
5
6
preproc_data(
  data_list,
  use_case = "team_games",
  na_perc = 0.1,
  highcorr_thresh = 0.9
)

Arguments

data_list

list of data.frames

use_case

chr which use case to go with; this should change to methods at some point

na_perc

num proportion of a column's values that are NA for that column to be nuked

highcorr_thresh

num threshold for pairwise correlations between columns, used in recipes::step_corr()

Value

list of data for modeling


jimtheflash/nba.modelR documentation built on Dec. 21, 2021, 12:07 a.m.