Computes the g-index for entities at the specified level. The g-index is the largest g such that the top g works have at least g^2 citations in total (Egghe, 2006).
Usage
sm_metric_g_index(
corpus,
level = c("author", "institution", "source", "country"),
self_corrected = FALSE,
call = rlang::caller_env()
)Arguments
- corpus
An sm_corpus object.
- level
Character; the entity level. Defaults to
"author".- self_corrected
Logical (default
FALSE); remove self-citations (sm_self_citation()) before computing the index. Author/institution only.- call
Caller environment for error reporting.
Examples
corpus <- sm_example_corpus()
sm_metric_g_index(corpus, level = "author")
#> # A tibble: 80 × 2
#> author_id g_index
#> <chr> <int>
#> 1 A000000001 20
#> 2 A000000032 16
#> 3 A000000042 16
#> 4 A000000038 15
#> 5 A000000020 14
#> 6 A000000022 14
#> 7 A000000013 13
#> 8 A000000015 13
#> 9 A000000037 13
#> 10 A000000076 13
#> # ℹ 70 more rows