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
)

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.

Author

Rob J Hyndman, Timothy Hyndman, Charles Gray

Examples

if (FALSE) { auswt20 <- fetch_cricinfo("T20", "Women", country="Aust") IndiaODIBowling <- fetch_cricinfo("ODI", "men", "bowling", country="india") }