calcScores2: Wrapper to Calculate Similarity Scores

Description Usage Arguments Value References

View source: R/similarity-scores.R

Description

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.

Usage

1
calcScores2(dat, player, weights)

Arguments

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.

Value

data.frame containing scores for each player

References

Gower, J. C. (1971) A general coefficient of similarity and some of its properties, Biometrics 27, 857 - 874.


guytuori/simScores documentation built on May 17, 2019, 9:29 a.m.