etl_extract.etl_retro: Download Retrosheet data

Description Usage Arguments Source References Examples

View source: R/retro.R

Description

Download Retrosheet data

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'etl_retro'
etl_extract(obj, season = 2017, ...)

## S3 method for class 'etl_retro'
etl_transform(obj, season = 2017, ...)

## S3 method for class 'etl_retro'
etl_load(obj, season = 2017, ...)

Arguments

obj

the ETL object

season

the season

...

currently ignored

Source

Retrosheet: http://www.retrosheet.org/game.htm

References

http://www.retrosheet.org/location.htm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
  system("mysql -e 'CREATE DATABASE IF NOT EXISTS retrosheet;'")
  db <- src_mysql_cnf("retrosheet")
  retro <- etl("retro", db = db, dir = "~/dumps/retro/")

  retro %>%
    etl_extract(season = 2013:2016) %>%
    etl_transform(season = 2014:2016) %>%
    etl_load(season = 2014)

## End(Not run)

beanumber/retro documentation built on July 23, 2019, 8:06 a.m.