keywords2df: Convert keywords from list to data frame

View source: R/oa2df.R

keywords2dfR Documentation

Convert keywords from list to data frame

Description

The function converts a list of keywords obtained using oa_request or oa_fetch(output = "list") into a data frame/tibble. More on keyword at <https://help.openalex.org/hc/en-us/articles/24736201130391-Keywords>.

Usage

keywords2df(data, verbose = TRUE)

Arguments

data

List. Output of oa_request.

verbose

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

Value

a data.frame.

Examples

## Not run: 

x <- oa_fetch(
  entity = "keywords",
  options = list(sample = 5),
  output = "list"
)

df <- oa2df(x, entity = "keywords")

df

## End(Not run)


openalexR documentation built on April 11, 2025, 6:01 p.m.