Learn R Programming

openalexR (version 3.0.0)

sources2df: Convert OpenAlex collection of sources' records from list format to data frame

Description

It converts bibliographic collection of sources' records gathered from OpenAlex database https://openalex.org/ into data frame. The function converts a list of sources' records obtained using oa_request into a data frame/tibble.

Usage

sources2df(data, verbose = TRUE)

Value

a data.frame.

For more extensive information about OpenAlex API, please visit: <https://docs.openalex.org>

Arguments

data

List. Output of oa_request.

verbose

Logical. If TRUE, print information about the dataframe conversion process. Defaults to TRUE.

Examples

Run this code
if (FALSE) {

# Get sources from Nature

res <- oa_request(
  "https://api.openalex.org/sources?search=nature"
)

df <- oa2df(res, entity = "sources")

df
}

Run the code above in your browser using DataLab