scrape_new_ids: Scrape new ids for MLB and Yahoo

Description Usage Arguments Value

Description

a utility function that looks for newly added players from one of the fantasy providers

Usage

1
2
scrape_new_ids(id_type = "mlb", exclude_known = TRUE, verbose = TRUE,
  expand_range = 500, backtrack_range = -500)

Arguments

id_type

c('mlb', 'yahoo')

exclude_known

should we ignore the players who have already have records? default is TRUE.

verbose

output current player name to the console. default is TRUE

expand_range

at the close, we'll expand the number of ids to check by some fixed number, to make sure that we are looking high enough to get new ones. default is 200.

Value

writes data to data-raw/whatever.csv. returns 'OK' if function completes


almartin82/mlbids documentation built on May 10, 2019, 9:54 a.m.