nfl2007: NFL 2007 season

Description Format Examples

Description

Results of National Football League games (2007 season, including playoffs)

Format

A data frame with 267 observations on the following 7 variables.

Examples

1
2
3
4
5
6
7
8
9
data(nfl2007); nfl <- nfl2007
nfl$dscore <- nfl$HomeScore - nfl$VisitorScore 
w <- which(nfl$dscore > 0) 
nfl$winner <- nfl$Visitor; nfl$winner[w] <- nfl$Home[w] 
nfl$loser <- nfl$Home; nfl$loser[w] <- nfl$Visitor[w] 
# did the home team win? 
nfl$homeTeamWon <- nfl$dscore > 0 
table(nfl$homeTeamWon)
table(nfl$dscore > nfl$line)

fastR documentation built on May 1, 2019, 11:18 p.m.