Learn R Programming

openalexR (version 1.4.0)

show_authors: Simplify the OpenAlex authors result

Description

This function is mostly for the package's internal use, but we export it so you can try it out. However, we expect that you'll likely write your own function to simplify the result however you want.

Usage

show_authors(x, simp_func = utils::head)

Value

Simplified tibble to display. The first column, `id` is the short-form OpenAlex ID of the authors.

Arguments

x

Dataframe/tibble. Result of the OpenAlex query for authors already converted to dataframe/tibble.

simp_func

R function to simplify the result. Default to `head`. If you want the entire table, set `simp_fun = identity`

Examples

Run this code

show_authors(oa_fetch(
  identifier = c("A5023888391", "A5014077037"),
  verbose = TRUE
))

Run the code above in your browser using DataLab