parseBracket: Parse a Kaggle-formatted bracket

Description Usage Arguments Details Value Note Examples

Description

Inputs a bracket in kaggle file format and outputs a data.table

Usage

1

Arguments

f

Path to the Kaggle-formatted bracket csv

w

0 for women's bracket, 1 for mens. If NULL will be infered from the file name (e.g. "women" in name = 1, otherwise men).

Details

Reads the csv using data.table::fread, then uses splitstr to parse. problems

Value

a data.table

Note

Will only have 1 row per game, where team_1 is the lower id team

Examples

1
2
3
f <- system.file('kaggle_data/seed_benchmark_women.csv', package = "kaggleNCAA", mustWork=TRUE)
dat <- parseBracket(f)
head(dat)

zachmayer/kaggleNCAA documentation built on May 4, 2019, 9:03 p.m.