Skip to contents

Load ball-by-ball data from Fox Sports from local DuckDB or remote GitHub release.

Usage

load_fox_balls(
  match_ids = NULL,
  format = NULL,
  gender = NULL,
  source = c("local", "remote")
)

Arguments

match_ids

Integer or numeric vector. Filter for specific match IDs. If NULL, loads all.

format

Character. Format filter (e.g., "bbl", "test"). If NULL, loads all formats.

gender

Character. "male", "female", or NULL (all genders). Only applies when filtering via the details table.

source

Character. "local" (default) or "remote".

Value

Data frame of ball-by-ball data.

Examples

if (FALSE) { # \dontrun{
# Load all BBL balls
bbl_balls <- load_fox_balls(format = "bbl")

# Load balls for a specific match
balls <- load_fox_balls(match_ids = 123456)

# From remote
balls <- load_fox_balls(format = "test", source = "remote")
} # }