| winloss | R Documentation |
Get a summary table of a team's wins and losses for a given year
winloss(team_name, yr)
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 |
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
library(ipl)
# Find the total number of wins and losses for Sunrisers Hyderabad in the 2017 IPL season
winloss("Delhi Daredevils", 2017)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.