dsApi2df: Convert json dimensions bibliographic data into a dataframe

View source: R/dsApi2df.R

dsApi2dfR Documentation

Convert json dimensions bibliographic data into a dataframe

Description

It converts dimensions data, downloaded using DSL API, into a dataframe

Usage

dsApi2df(P, format = "bibliometrix")

Arguments

P

is a list in json dimensions structure downloaded using the function dsApiRequest.

format

is a character. If format = "bibliometrix" data will be converted in the bibliometrix complatible data format. If format = "raw" data will save in a data frame without any other data editing procedure.

Value

a dataframe containing bibliographic records or grants information.

To obtain a free access to Dimenions API fro no commercial use, please visit: https://ds.digital-science.com/NoCostAgreement

For more extensive information about dimensions API, please visit: https://www.dimensions.ai/dimensions-apis/

For more extensive information about bibliometrix R packagee, please visit: https://www.bibliometrix.org

See Also

dsApiRequest

dsAuth

dsQueryBuild

Examples



# Example 1: Querying a collection of publications

## Not run: 
token <- dsAuth(username = "my.email@my.domain", password = "mypassword")
query <- dsQueryBuild(item = "publications", words = "bibliometric*", 
                       type = "article", categories = "management", 
                       start_year=1980,end_year = 2020)
D <- dsApiRequest(token = token, query = query, limit = 50000)
M <- dsApi2df(D)

## End(Not run)

# Example 2: Querying a collection of grants

## Not run: 
token <- dsAuth(username = "my.email@my.domain", password = "mypassword")
query <- dsQueryBuild(item = "grants", words = "bibliometric*", 
                       type = "", categories = "management", 
                       start_year=1980,end_year = 2020)
D <- dsApiRequest(token = token, query = query, limit = 50000)
M <- dsApi2df(D)

## End(Not run)


massimoaria/dimensionsR documentation built on Feb. 10, 2024, 10:38 a.m.