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_works(x, simp_func = utils::head)
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`.
Value
Simplified tibble to display. The first column, `id` is the short-form OpenAlex ID of the works
Examples
show_works(oa_fetch(
identifier = c("W2741809807", "W2755950973"),
verbose = TRUE
))
#> Requesting url: https://api.openalex.org/works?filter=openalex_id%3AW2741809807%7CW2755950973
#> Getting 1 page of results with a total of 2 records...
#> # A tibble: 2 × 8
#> id display_name first…¹ last_…² so url is_oa top_c…³
#> <chr> <chr> <chr> <chr> <chr> <chr> <lgl> <chr>
#> 1 W2755950973 bibliometrix : An R-too… Massim… Corrad… Jour… NA FALSE Data s…
#> 2 W2741809807 The state of OA: a larg… Heathe… Stefan… PeerJ http… TRUE Citati…
#> # … with abbreviated variable names ¹first_author, ²last_author, ³top_concepts