uss_get_matches: Get a league-play tibble

View source: R/get-matches.R

uss_get_matchesR Documentation

Get a league-play tibble

Description

Gets league-play data for each game, from engsoccerdata, returning a tibble in a standardised format.

Usage

uss_get_matches(country = uss_countries(), ...)

Arguments

country

character scalar, specifies the league.

...

<data-masking> Expressions that return a logical value, and are defined in terms of the variables in .data. If multiple expressions are included, they are combined with the & operator. Only rows for which all conditions evaluate to TRUE are kept.

Details

uss_countries() returns the available choices; "england" is the default. Additional arguments are passed to dplyr::filter().

This function relies on an internal function, uss_make_matches(), to parse the source data.

Value

a tibble with columns country, date, season, tier, home, visitor, goals_home, goals_visitor.

Examples

uss_get_matches("england")
uss_get_matches("italy", season == 1934)

ijlyttle/ussie documentation built on July 18, 2022, 9:43 a.m.