Computes aggregate summary statistics for all works in the corpus.
Usage
sm_summary_works(corpus, call = rlang::caller_env())Arguments
- corpus
An sm_corpus object.
- call
Caller environment for error reporting.
Value
A tibble with one row containing summary statistics:
n_works, year_min, year_max, year_span, mean_citations,
median_citations, total_citations, n_types (unique document types),
n_sources (unique journals/sources), n_oa (open access works),
pct_oa, n_retracted, n_languages.
Examples
corpus <- sm_example_corpus()
sm_summary_works(corpus)
#> # A tibble: 1 × 13
#> n_works year_min year_max year_span mean_citations median_citations
#> <int> <int> <int> <int> <dbl> <dbl>
#> 1 200 2015 2024 10 15.3 12
#> # ℹ 7 more variables: total_citations <int>, n_types <int>, n_sources <int>,
#> # n_oa <int>, pct_oa <dbl>, n_retracted <int>, n_languages <int>