powered by
Fetch data from ESPNCricinfo and return a tibble. All arguments are case-insensitive and partially matched.
fetch_cricinfo( matchtype = c("test", "odi", "t20"), sex = c("men", "women"), activity = c("batting", "bowling", "fielding"), type = c("career", "innings"), country = NULL )
A tibble object, similar to a data.frame.
tibble
data.frame
Character indicating test (default), odi, or t20.
Character indicating men (default) or women.
Character indicating batting (default), bowling or fielding.
Character indicating innings-by-innings or career (default) data
Character indicating country. The default is to fetch data for all countries.
Rob J Hyndman, Timothy Hyndman, Charles Gray
if (FALSE) { auswt20 <- fetch_cricinfo("T20", "Women", country = "Aust") IndiaODIBowling <- fetch_cricinfo("ODI", "men", "bowling", country = "india") }
Run the code above in your browser using DataLab