index_rp {agop}R Documentation

The r_p-index


Given a sequence of n non-negative numbers x=(x_1,…,x_n), where x_i ≥ x_j for i ≤ j, the r_p-index for p=∞ equals to

r_p(x) = max{ min{i, x_i} } for i=1,…,n

if n ≥ 1, or r_∞(x)=0 otherwise. That is, it is equivalent to a particular OWMax operator, see owmax.

For the definition of the r_p-index for p < ∞ we refer to (Gagolewski, Grzegorzewski, 2009).


index_rp(x, p = Inf)

index.rp(x, p = Inf) # same as index_rp(x, p), deprecated alias



a non-negative numeric vector


index order, p in [1,∞]; defaults (Inf).


Note that if x_1,…,x_n are integers, then


where H is the h-index (Hirsch, 2005) and


where W is the w-index (Woeginger, 2008), see index_h and index_w.

If a non-increasingly sorted vector is given, the function has O(n) run-time.

For historical reasons, this function is also available via an alias, index.rp [but its usage is deprecated].


a single numeric value


Gagolewski M., Grzegorzewski P., A geometric approach to the construction of scientific impact indices, Scientometrics 81(3), 2009, pp. 617-634.

Hirsch J.E., An index to quantify individual's scientific research output, Proceedings of the National Academy of Sciences 102(46), 2005, pp. 16569-16572.

Woeginger G.J., An axiomatic characterization of the Hirsch-index, Mathematical Social Sciences 56(2), 2008, pp. 224-232.

See Also

Other impact_functions: index_g, index_h, index_lp, index_maxprod, index_w, pord_weakdom


x <- runif(100, 0, 100);
index.rp(x);            # the r_oo-index
floor(index.rp(x));     # the h-index
index.rp(floor(x), 1);  # the w-index

[Package agop version 0.2-3 Index]