Outfield position data: information about positions played in the outfield
A data frame with 34563 observations on the following 18 variables.
Player ID code
player's stint (order of appearances within a season)
Team; a factor
League; a factor with levels
Time played in the field expressed as outs
Passed Balls (by catchers)
Wild Pitches (by catchers)
Opponent Stolen Bases (by catchers)
Opponents Caught Stealing (by catchers)
Lahman, S. (2022) Lahman's Baseball Database, 1871-2021, 2021 version, https://www.seanlahman.com/baseball-archive/statistics/
require("dplyr") require("tidyr") ## Data set starts in 1954 ## Can get a more complete record from the Fielding data frame ## or from the Appearances data (see below) ## Output directly from the FieldingOFsplit data ## Joe DiMaggio (no records: pre-1954 player) FieldingOFsplit %>% filter(playerID == "dimagjo01") ## Willie Mays (all but his first few years) FieldingOF %>% filter(playerID == "mayswi01") ## Mike Trout (complete) FieldingOF %>% filter(playerID == "troutmi01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.