etl_extract.etl_statcastr: Scrape Statcast data

Description Usage Arguments Examples

View source: R/statcastr.R

Description

Scrape Statcast data

Usage

1
2
3
4
5
## S3 method for class 'etl_statcastr'
etl_extract(obj, years = 2019, months = 6, ...)

## S3 method for class 'etl_statcastr'
etl_load(obj, years = 2019, months = 6, ...)

Arguments

obj

ETL object

years

A numeric vector of years

months

A numeric vector of months

...

arguments passed to scrape_statcast_savant_batter_all

Examples

1
2
3
4
5
6
7
8
sc <- etl("statcastr")
## Not run: 
sc %>%
  etl_extract() %>%
  etl_transform() %>%
  etl_load(tablenames = "statcast")

## End(Not run)

beanumber/statcastr documentation built on Nov. 9, 2019, 8:33 a.m.