missing_raw_pbp: Compute Missing Raw PBP Data on Local Filesystem

View source: R/save_raw_pbp.R

missing_raw_pbpR Documentation

Compute Missing Raw PBP Data on Local Filesystem

Description

Uses nflreadr::load_schedules() to load game IDs of finished games and compares these IDs to all files saved under dir. This function is intended to serve as input for save_raw_pbp().

Usage

missing_raw_pbp(
  dir = getOption("nflfastR.raw_directory", default = NULL),
  verbose = TRUE
)

Arguments

dir

Path to local directory (defaults to option "nflfastR.raw_directory"). nflfastR will download the raw game files split by season into one sub directory per season.

verbose

If TRUE, will print number of missing game files as well as oldest and most recent missing ID to console.

Value

A character vector of missing game IDs. If no files are missing, returns NULL invisibly.

See Also

save_raw_pbp()

Examples


try(
missing <- missing_raw_pbp(tempdir())
)


nflfastR documentation built on Oct. 20, 2023, 5:14 p.m.