get_primary_pos: Get primary position

Description Usage Value Examples

View source: R/utilities.R

Description

Gets primary position based on 'Fielding' table from the 'Lahman' package. Uses the categories from the Lahman Fielding table so all OF positons are collapsed into 'OF'. Main use is to filter pitchers before computing seasonal averages batting stats.

Usage

1

Value

A data frame containing playerID, yearID, primary position, and number of games at primary position.

Examples

1
2
primary_pos <- get_primary_pos()
primary_pos %>% group_by(POS) %>% summarise(n=n())

bdilday/marcelR documentation built on March 7, 2020, 11:02 a.m.