Skip to contents

Given country and season, return the number of points for a win.

Usage

uss_points_per_win(country, season, default = 3)

Arguments

country

character scalar, specifies the league. uss_countries() returns choices available from engsoccerdata

season

integer-ish year of the football season.

default

integer-ish default value for points-per-win, used if a value of country is not in uss_countries().

Value

integer number of points per win

Details

This function is vectorized over country and season; they should have the same length. If any country is not in uss_countries, a warning is issued, defauuthe 3 is returned for

Examples

uss_points_per_win("england", 1980)
#> [1] 2
uss_points_per_win(c("england", "england"), c(1980, 1981))
#> [1] 2 3