similarityToolTwoPlayersBB: Similarity Score Generator (Batted Balls)

Description Usage Arguments Details Value Note Author(s)

Description

Finds the similarity score for two given players based on Batted Ball data

Usage

1
similarityToolTwoPlayersBB(battedBallVals, playerNameOne, playerNameTwo)

Arguments

battedBallVals

A dataframe of batted ball data from FanGraphs.

playerNameOne

A string with the name of a player in the format "Firstname Lastname"

playerNameTwo

A string with the name of a player in the format "Firstname Lastname"

Details

BattedBallVals are designed to be from FanGraphs, using the Batted Ball tab in conjunction with BB% and K% (use FanGraph's custom reports tool to generate this report). They must contain all of the following attributes (other values can be included, but will not be used): GB%, LD%, FB%, HR/FB, Pull%, Cent%, Oppo%, Soft%, Med%, Hard%, K%, BB%, Name.

Value

A dataframe with the similarity score of the two players.

Note

Similarity scores will differ depending upon the sample size presented due to the normalization applied in the creation of the scores.

Author(s)

John Edwards


Metlover/similarityTool documentation built on May 22, 2019, 1:03 p.m.