Skip to contents

Load match data from local DuckDB or remote GitHub releases. Filter by match_type, gender, and team_type.

Usage

load_matches(
  match_type = "all",
  gender = "all",
  team_type = "all",
  source = c("local", "remote")
)

Arguments

match_type

Character or vector. One or more of: "Test", "ODI", "T20", "IT20", "MDM", "ODM", or "all" (default).

gender

Character. "male", "female", or "all" (default).

team_type

Character. "international", "club", or "all" (default).

source

Character. "local" (default) uses local DuckDB. "remote" queries GitHub releases via fast download.

Value

Data frame of matches, sorted by most recent first.

Examples

if (FALSE) { # \dontrun{
# Load all matches from local database
matches <- load_matches()

# Load only T20 international men's matches
t20i_men <- load_matches("T20", "male", "international")

# Load multiple match types
limited_overs <- load_matches(c("ODI", "T20"), "male", "international")

# Load from GitHub releases (no local install needed)
matches <- load_matches(source = "remote")
} # }