Description Usage Arguments Details Value Note Author(s)
Finds the similarity score for two given players based on Batted Ball data
1 | similarityToolTwoPlayersBB(battedBallVals, playerNameOne, playerNameTwo)
|
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" |
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.
A dataframe with the similarity score of the two players.
Similarity scores will differ depending upon the sample size presented due to the normalization applied in the creation of the scores.
John Edwards
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.