Learn R Programming

baseballDBR (version 0.1.2)

Ch: Fielding: Calculate defensive chances

Description

The number of chances a player had to make a defensive play. Required fields from the Fielding table are; "PO", "A", and "E."

Usage

Ch(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 Fielding functions: Fld_pct

Examples

Run this code

data("Fielding2016")
head(Fielding2016)

Fielding2016$Ch <- Ch(Fielding2016)

Run the code above in your browser using DataLab