View source: R/fetch_cricsheet.R
fetch_cricsheet | R Documentation |
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.
fetch_cricsheet(
type = c("bbb", "match", "player"),
gender = c("female", "male"),
competition = "tests"
)
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 |
A tibble
object, similar to a data.frame
.
Jacquie Tran, Hassan Rafique and Rob J Hyndman
## Not run:
wbbl_bbb <- fetch_cricsheet(competition = "wbbl", type = "bbb")
wbbl_match <- fetch_cricsheet(competition = "wbbl", type = "match")
wbbl_player <- fetch_cricsheet(competition = "wbbl", type = "player")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.