h_index: H-Index

View source: R/h_index.R

h_indexR 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))


bggAnalytics documentation built on Aug. 31, 2022, 5:09 p.m.