Finds the players who are most similar to any other player in a given dataset of pitching peripheral data from FanGraphs
similarityToolMostSimPitching(battedBallVals, numResults = 10)
A dataframe of pitching peripheral data from FanGraphs.
An integer. Defaults to 10.
BattedBallVals are designed to be from FanGraphs, using the Batted Ball tab in conjunction with K/9 and BB/9 (use the custom report feature to obtain this data). 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%, BB/9, K/9, Name.
A dataframe of the players with the lowest net similarity score.
Similarity scores will differ depending upon the sample size presented due to the normalization applied in the creation of the scores.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.