trust_the_process: Clean and process play-by-play punting data

View source: R/processing.R

trust_the_processR Documentation

Clean and process play-by-play punting data

Description

This function handles all of the standard data cleaning necessary/preferable for puntalytics.

Usage

trust_the_process(punts, seasontype = "REG", trim = TRUE)

Arguments

punts

The play-by-play punting data to be cleaned and processed

seasontype

One of "REG" (default) or "POST" to filter data, or NULL to include all data

trim

Specify trim=FALSE if you would like to use puntr::punt_trim to create custom columns (or not use puntr::punt_trim at all and include all columns)

Value

A tibble punts with cleaned and processed play-by-play punting data

Examples

## Not run: 
trust_the_process(punts)
trust_the_process(punts_custom_trimmed_already, trim=FALSE)

## End(Not run)

Puntalytics/puntr documentation built on Sept. 7, 2024, 5:23 p.m.