Fetch ball-by-ball, match and player data from Cricsheet and return a tibble.
Source:R/fetch_cricsheet.R
fetch_cricsheet.Rd
Download csv data from Cricsheet https://cricsheet.org/downloads/.
Data must be specified by three factors:
(a) type of data: bbb
(ball-by-ball), match
or player
.
(b) gender;
(c) competition specified as a Cricsheet code. See cricsheet_codes
for the
competitions and codes available.
Arguments
- type
Character string giving type of data: ball-by-ball, match info or player info.
- gender
Character string giving player gender: female or male.
- competition
Character string giving code corresponding to competition. See
cricsheet_codes
for the competitions and codes available.