bestwins: Return each team's best wins

Description Usage Arguments Value Examples

View source: R/bestwins.R

Description

Return each team's best wins

Usage

1
bestwins(df = NULL, teamname = NULL, type = NULL, N = NULL)

Arguments

df

the results dataset

teamname

team name

type

If =NULL then all results are returned. If Otherwise valid types are H, A relating to home-losses, away-losses

N

The total number of games to return

Value

a dataframe of games ending in best wins

Examples

1
2
3
4
bestwins(england,"Everton")
bestwins(england,"Aston Villa", type="H")
bestwins(england,"York City", type="A")
bestwins(england,"Port Vale", N=20)

engsoccerdata documentation built on May 2, 2019, 8:29 a.m.