ma_calchist: CalcHistogram API

Description Usage Arguments Examples

View source: R/calchistogram.R

Description

CalcHistogram API

Usage

1
2
3
4
5
6
7
8
9
ma_calchist(
  query,
  count = 10,
  offset = 0,
  atts = c("Id", "AA.AuN", "J.JN", "Ti", "Y", "CC"),
  model = "latest",
  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/academic-services/project-academic-knowledge/reference-entity-attributes for details.

model

(character) Name of the model that you wish to query. One of 'latest' or 'beta-2015'. Default: latest

key

(character) microsoft academic API key, see the Authentication section in microdemic-package

...

curl options passed on to crul::HttpClient

Examples

1
2
3
4
5
6
## Not run: 
res <- ma_calchist(query = "And(Composite(AA.AuN=='jaime teevan'),Y>2012)",
  atts = c('Y', 'F.FN'))
res$histograms$histogram

## End(Not run)

microdemic documentation built on Nov. 20, 2020, 9:06 a.m.