drop_incomplete_games: Remove games from data set that have missing information

View source: R/PrepData.R

drop_incomplete_gamesR Documentation

Remove games from data set that have missing information

Description

Remove games from data set that have missing information

Usage

drop_incomplete_games(data, game_ids = FALSE)

Arguments

data

A data frame with columns for Team, Score, Year, and Week produced by scrape_games. These 3 columns must be numeric.

game_ids

Logical argument to indicate if we want the returned data frame to include game_id numbers

Value

A cleaned version of game data with games that had incomplete data removed

Examples

drop_incomplete_games(regssn2021, game_ids = TRUE)

przybylee/NFLpredictions documentation built on Feb. 9, 2025, 9:22 p.m.