punt_trim: Filter columns relevant to punting

View source: R/processing.R

punt_trimR Documentation

Filter columns relevant to punting

Description

This function is exported in case you would like include custom columns; if you would NOT, you can just use [puntr::trust_the_process]. If you do use puntr::punt_trim yourself, be sure to include the trim=FALSE flag in puntr::trust_the_process.

Usage

punt_trim(punts, columns = NULL)

Arguments

punts

The play-by-play punting data

columns

Defaults to NULL indicating trimming down to the default columns. If columns is a list of other columns, those will be additionally included

Value

A tibble punts containing only the specified columns

Examples

## Not run: 
punt_trim(punts)
punt_trim(punts, columns=c("solo_tackle", "assist_tackle"))

## End(Not run)

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