sportsdataverse / cfbfastR-data

cfbfastR data 2002-present

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cfbfastR-data

Twitter Follow Twitter Follow @saiemgilani

cfbfastR data 2002-2020

RDS

seasons <- 2002:2020
pbp <- purrr::map_df(seasons, function(x) {
  readRDS(
    url(
      glue::glue("https://raw.githubusercontent.com/sportsdataverse/cfbfastR-data/master/pbp/rds/play_by_play_{x}.rds")
    )
  )
})

CSV (compressed)

seasons <- 2002:2020
pbp <- purrr::map_df(seasons, function(x) {
  readr::read_csv(
    url(
      glue::glue("https://raw.githubusercontent.com/sportsdataverse/cfbfastR-data/master/pbp/csv/play_by_play_{x}.csv.gz")
    )
  )
})

Parquet (arrow)

seasons <- 2002:2020
pbp <- purrr::map_df(seasons, function(x) {
  download.file(glue::glue("https://raw.githubusercontent.com/sportsdataverse/cfbfastR-data/master/data/parquet/play_by_play_{x}.parquet"),"tmp.parquet")
  df <- arrow::read_parquet("tmp.parquet")
  return(df)
})

About

cfbfastR data 2002-present


Languages

Language:R 98.9%Language:Shell 1.1%