Learn R Programming

microdemic (version 0.1.0)

ma_evaluate: Evaluate API

Description

Evaluate API

Usage

ma_evaluate(query, count = 10, offset = 0, orderby = NULL,
  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

orderby

(logical) column by which to order. default: none

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

Value

a list of length two, with expr (character) and entities (data.frame)

References

Query expression syntax https://docs.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/queryexpressionsyntax

Examples

Run this code
# NOT RUN {
ma_evaluate(query = "Ti='biology'...")
ma_evaluate(query = "Composite(AA.AuN=='jaime teevan')",
  atts = c('Id', 'AA.AuN'))
ma_evaluate(query = "Y=2010", atts = c('Id', 'Y'))
ma_evaluate(query = "Y=[2010, 2012)", atts = c('Id', 'Y'))
ma_evaluate(query = "D=['2010-02-03','2010-02-05']", atts = c('Id', 'Y'))
x <- "Composite(And(AA.AuN='mike smith',AA.AfN='harvard university'))"
ma_evaluate(x)
# }

Run the code above in your browser using DataLab