h_index: H-Index

Description Usage Arguments Value References Examples

View source: R/h_index.R

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

1
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

1
2
3
4
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 Sept. 24, 2021, 1:06 a.m.