winloss: Get a summary table of a team's wins and losses for a given...

View source: R/winloss.R

winlossR Documentation

Get a summary table of a team's wins and losses for a given year

Description

Get a summary table of a team's wins and losses for a given year

Usage

winloss(team_name, yr)

Arguments

team_name

A team for whom we want to calculate the number of wins and losses

yr

The year for which the number of wins and losses for the given team is to be calculated

Value

winloss return number of wins, losses, and win percentage at each starting position for the given team on the given year, as a data frame

Examples

library(ipl)

# Find the total number of wins and losses for Sunrisers Hyderabad in the 2017 IPL season
winloss("Delhi Daredevils", 2017)

Swaha294/ipl documentation built on May 10, 2022, 3:23 p.m.