dsApi2df: Convert json dimensions bibliographic data into a dataframe

Description Usage Arguments Value See Also Examples

View source: R/dsApi2df.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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)

dimensionsR documentation built on Aug. 28, 2020, 5:09 p.m.