Description Usage Arguments Value References
View source: R/similarity-scores.R
Uses the findDiffs2
function to calculate similarity scores.
This is used internally by age_comps
, and
level_comps
. This function should only be used inside these
two functions.
1 | calcScores2(dat, player, weights)
|
dat |
data.frame of player information. Must be in proper format. |
player |
name of player to find similarity scores for. |
weights |
named vector. The names are the stats for which we will be calculating similarity scores. The values are the weight for each statistics to use when calculating similarity scores. |
data.frame containing scores for each player
Gower, J. C. (1971) A general coefficient of similarity and some of its properties, Biometrics 27, 857 - 874.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.