Skip to contents

Computes aggregate summary statistics for authors in the corpus.

Usage

sm_summary_authors(corpus, call = rlang::caller_env())

Arguments

corpus

An sm_corpus object.

call

Caller environment for error reporting.

Value

A tibble with one row containing: n_authors, n_with_orcid, pct_orcid, mean_works_per_author, median_works_per_author, max_works_per_author, mean_authors_per_work, single_author_pct.

Examples

corpus <- sm_example_corpus()
sm_summary_authors(corpus)
#> # A tibble: 1 × 8
#>   n_authors n_with_orcid pct_orcid mean_works_per_author median_works_per_author
#>       <int>        <int>     <dbl>                 <dbl>                   <dbl>
#> 1        80           45      56.2                  9.44                       9
#> # ℹ 3 more variables: max_works_per_author <int>, mean_authors_per_work <dbl>,
#> #   single_author_pct <dbl>