GetJson: GetJson

Description Usage Arguments Value Examples

View source: R/basics.R

Description

GetJson

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
GetJson(
  endpoint = "",
  db = "",
  id = "",
  term = "",
  reldate = "",
  datetype = "",
  retmax = 1000,
  usehistory = "y",
  retstart = "",
  WebEnv = "",
  cmd = ""
)

Arguments

endpoint

a string of characters, valid endpoint of NCBI Utilities, e.g. "eserach", "efetch","elink", "esummary"

db

a string of characters. Target database about which to gather statistics. Values must match https://www.ncbi.nlm.nih.gov/books/n/helpeutils/chapter2/#chapter2.chapter2_table1

id

a list of strings. UID list. Either a single UID or a UID list

term

a string of characters. Entrez text query.

reldate

a string of characters, When reldate is set to an integer n, the search returns only those items that have a date specified by datetype within the last n days.

datetype

a string of characters. Type of date used to limit a search. The allowed values vary between Entrez databases, but common values are 'mdat' (modification date), 'pdat' (publication date) and 'edat' (Entrez date).

retmax

a string of characters. Total number of UIDs from the retrieved set to be shown in the XML output (default=20). By default, ESearch only includes the first 20 UIDs retrieved in the XML output.

usehistory

a string of characters. When usehistory is set to 'y', ESearch will post the UIDs resulting from the search operation onto the History server so that they can be used directly in a subsequent E-utility call. Also, usehistory must be set to 'y' for ESearch to interpret query key values included in term or to accept a WebEnv as input.

retstart

a string of characters.Sequential index of the first UID in the retrieved set to be shown in the XML output. This parameter can be used in conjunction with retmax to download an arbitrary subset of UIDs retrieved from a search.

WebEnv

a string of characters. Web environment string returned from a previous ESearch, EPost or ELink call. When provided, ESearch will post the results of the search operation to this pre-existing

cmd

a string of characters. ELink command mode. The command mode specified which function ELink will perform. Some optional parameters only function for certain values of &cmd

Value

a XMLInternalDocument

Examples

1
GetJson(db = "pubmed", endpoint = "esearch", term="pinkeye", retmax=5)

shihikoo/pubmedTools documentation built on June 19, 2021, 9:56 a.m.