SLG: Batting: Calculate slugging percentage (SLG)

Description Usage Arguments See Also Examples

Description

Find the SLG for batters with more than zero hits. Required fields from the batting table are "H", "X2B", "X3B", "HR"."

Usage

1
SLG(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.

See Also

Other Batting functions: BABIP, BA, BBpct, CTpct, HRpct, ISO, Kpct, OBP, OPS, PA, RC2002, RCbasic, RCtech, TBs, XBHpct, XBperH, wOBA, wRAA, wRC

Examples

1
2
3
4

baseballDBR documentation built on May 2, 2019, 5:56 a.m.