kaggle_game_data: Create a 'game.data' tibble from Kaggle NCAA data

Description Usage Arguments Value Examples

View source: R/rank_utils.R

Description

mvglmmRank reads an input file in a specific game.data format. This function takes a "compact results" dataset for an NCAA season and adds columns to satisfy the mvglmmRank requirements.

Usage

1
kaggle_game_data(compact_results)

Arguments

compact_results

a Kaggle NCAA "Compact Results" dataset

Value

the dataset augmented with the input columns for mvglmmRank

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
RegularSeasonCompactResults <- readr::read_csv(
  "~/DFS/kaggle/RegularSeasonCompactResults.csv",
  col_types = cols(
    DayNum = col_integer(),
    LScore = col_integer(),
    LTeamID = col_integer(),
    NumOT = col_integer(),
    Season = col_integer(),
    WScore = col_integer(),
    WTeamID = col_integer())) %>%
  filter(Season == 2019)

## End(Not run)

znmeb/dfstools documentation built on March 3, 2020, 5:50 p.m.