fetch_cricinfo {cricketdata} | R Documentation |
Fetch Data from Cricinfo
Description
Fetch data from ESPNCricinfo and return a tibble. All arguments are case-insensitive and partially matched.
Usage
fetch_cricinfo(
matchtype = c("test", "odi", "t20"),
sex = c("men", "women"),
activity = c("batting", "bowling", "fielding"),
type = c("career", "innings"),
country = NULL
)
Arguments
matchtype |
Character indicating test (default), odi, or t20. |
sex |
Character indicating men (default) or women. |
activity |
Character indicating batting (default), bowling or fielding. |
type |
Character indicating innings-by-innings or career (default) data |
country |
Character indicating country. The default is to fetch data for all countries. |
Value
A tibble
object, similar to a data.frame
.
Author(s)
Rob J Hyndman, Timothy Hyndman, Charles Gray
Examples
## Not run:
auswt20 <- fetch_cricinfo("T20", "Women", country = "Aust")
IndiaODIBowling <- fetch_cricinfo("ODI", "men", "bowling", country = "india")
## End(Not run)
[Package cricketdata version 0.2.3 Index]