HeadtoHead: Head-to-Head

Description Usage Arguments Value Examples

View source: R/ProjectNFL.R

Description

This function determines the record of one team against up to three other teams in the National Football League

Usage

1
2
HeadtoHead(Team1, Team2, Team3 = NULL, Team4 = NULL, data,
  SimScores = NULL)

Arguments

Team1

the main team whose game results is being evaluated by the function

Team2

a team that Team1 is being evaluated against

Team3

a team that Team1 is being evaluated against (default is NULL)

Team4

a team that Team1 is being evaluated against (default is NULL)

SimScores

the simulated scores, if a simulation was performed

Data

the data frame from which Scores are gathered (default is Week 17 WeeklyUpdate)

Value

Wins - Losses in all games for Team1 against the other teams specified

Examples

1
2
3
HeadtoHead("Vikings","Packers")
HeadtoHead("Vikings","Packers","Bears")
HeadtoHead("Vikings","Packers","Bears","Lions")

mstuart2097/STAT585Final documentation built on May 23, 2019, 8:16 a.m.