Add necessary columns to nflscrapR data

prep_pbp_data(data)

Arguments

data

An nflscrapR or nflfastR data set. Note that stringsAsFactors = FALSE is assumed.

Value

a data.table object

Examples

if (FALSE) {
dt <- prep_pbp_data(nflscrapr_pbp_data)
}