openWARPlayers: Players' openWAR values

Description Usage Arguments Format Examples

Description

A data.frame of players and their tabulated openWAR values. The function getWAR returns an object of class openWARPlayers.

Usage

1

Arguments

x

an object

Format

An openWARPlayers object.

playerId

The MLBAM id for the player

PA.bat

The number of plate appearances as a batter for that player

G

The number of games the player appeared in

HR

The number of home runs hit by that player

RAA.bat

Runs aboved average produced by this player from batting

PA.br1

The number of plate appearances that the player was a base runner on first base

RAA.br1

Runs above average produced by this player when they were a base runner on first base

PA.br2

The number of plate appearances that the player was a base runner on second base

RAA.br2

Runs above average produced by this player when they were a base runner on second base

PA.br3

The number of plate appearances that the player was a base runner on third base

RAA.br3

Runs above average produced by this player when they were a base runner on third base

BF

Number of batters faced by the player as a pitcher

RAA.pitch

Runs above average produced by this player from pitching

Name

Name of the player

PA.P

The number of plate appearances that the player's defensive position was pitcher

RAA.P

Runs above average produced by this player from fielding as a pitcher

PA.C

The number of plate appearances that the player's defensive position was catcher

RAA.C

Runs above average produced by this player from fielding as a catcher

PA.1B

The number of plate appearances that the player's defensive position was first base

RAA.1B

Runs above average produced by this player from fielding as a first base

PA.2B

The number of plate appearances that the player's defensive position was second base

RAA.2B

Runs above average produced by this player from fielding as a second base

PA.3B

The number of plate appearances that the player's defensive position was third base

RAA.3B

Runs above average produced by this player from fielding as a third base

PA.SS

The number of plate appearances that the player's defensive position was shortstop

RAA.SS

Runs above average produced by this player from fielding as a shortstop

PA.LF

The number of plate appearances that the player's defensive position was left field

RAA.LF

Runs above average produced by this player from fielding as a left field

PA.CF

The number of plate appearances that the player's defensive position was center field

RAA.CF

Runs above average produced by this player from fielding as a center field

PA.RF

The number of plate appearances that the player's defensive position was right field

RAA.RF

Runs above average produced by this player from fielding as a right field

RAA.br

Runs above average produced by this player as a base runner. Sum of RAA.br1, RAA.br2, and RAA.br3

RAA.off

Runs above average produced by this player as an offensive player. Sum of RAA.br and RAA.off

RAA.field

Runs above average produced by this player as a fielder. Sum of RAA.P, RAA.C, RAA.1B, RAA.2B, RAA.3B, RAA.SS, RAA.LF, RAA.CF, and RAA.RF

RAA

Total runs above average produced by this player. Sum of RAA.bat, RAA.br, RAA.field, and RAA.pitch

TPA

Total plate appearances of the player as a batter or pitcher. Sum of PA.bat and BF

repl

Runs above average produced by a shadow replacement-level player with the same profile (i.e. same number of batting, pitching, base running, and fielding opportunities) as the actual player

WAR

Wins above replacement for the player. Calculated as the difference between RAA and repl divided by 10

isReplacement

A boolean indicating if the player was part of the replacement pool for calculating replacement level

Examples

1

beanumber/openWAR documentation built on May 12, 2019, 9:43 a.m.