Learn R Programming

microdemic (version 0.1.0)

ma_calchist: CalcHistogram API

Description

CalcHistogram API

Usage

ma_calchist(query, count = 10, offset = 0, atts = c("Id", "AA.AuN",
  "J.JN", "Ti", "Y", "E", "CC"), key = NULL, ...)

Arguments

query

(character) query terms

count

(intger) number of records to return. default: 10

offset

(intger) record number to start at. default: 0

atts

(character) fields to return, in a character vector. See https://docs.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/entityattributes for details.

key

(character) microsoft academic API key, see Details.

...

curl options passed on to crul::HttpClient

Examples

Run this code
# NOT RUN {
res <- ma_calchist(query = "And(Composite(AA.AuN=='jaime teevan'),Y>2012)",
  atts = c('Y', 'F.FN'))
res$histograms$histogram
# }

Run the code above in your browser using DataLab