OPS: Batting: Calculate on base percentage plus slugging (OPS)
Description
Find the OPS for batters with more than zero hits.
Required fields from the batting table are "H", "X2B", "X3B", "HR", "BB", "HBP", "AB" and "SF."
Usage
OPS(dat = NULL)
Arguments
dat
A data frame you would wish to calculate. The data frame must have the same column names found in
The Lahman package or the Chadwick Bureau GitHub repository.