Learn R Programming

engsoccerdata (version 0.1.5)

ngoals: Return all instances of a team scoring n goals

Description

Return all instances of a team scoring n goals

Usage

ngoals(df = NULL, n = NULL, teamname = NULL)

Arguments

df
The results dataframe
n
Number of goals
teamname
teamname

Value

a dataframe with summary of results.

Examples

Run this code
ngoals(england, 7, "York City")
ngoals(england, 8, "Manchester United")
ngoals(england, 9, "Aston Villa")

Run the code above in your browser using DataLab