h_index {bggAnalytics}R Documentation

H-Index

Description

Calculate H-Index from the number of game plays. H-Index measures the experience of a player based on reported play counts. It rises only when one plays many different games multiple times. It tries to distinguish players who play a few games really often and these who try every game once and leave it on the shelf from those who have the broad collection of high-count plays.

Usage

h_index(num_plays)

Arguments

num_plays

a numeric vector of non-negative integers.

Value

A single non-negative integer.

References

H-Index in Wikipedia BoardGameGeek thread about H-Index

Examples

h_index(0)
h_index(c(0, 0, 1, 2, 1))
h_index(c(2, 2, 5, 100))
h_index(c(2, 3, 5, 100))


[Package bggAnalytics version 0.2.0 Index]