vocabulary: Vocabulary services - get terms that match a prefix

View source: R/vocabulary.R

vocabularyR Documentation

Vocabulary services - get terms that match a prefix

Description

Vocabulary services - get terms that match a prefix

Usage

vocabulary(
  prefix = NULL,
  id = NULL,
  limit = 20,
  category = NULL,
  vocabulary = NULL,
  key = NULL,
  ...
)

Arguments

prefix, id

(character) The prefix, or id of the term. Use one or the other

limit

The number of candidates to return. Default: 20

category

A category

vocabulary

A vocabulary

key

(character) API key. required either passed in here or save as an env var or R option. see rif and Startup

...

Curl options passed on to crul::HttpClient()

See Also

Other vocabulary: vocabulary_categories(), vocabulary_providers(), vocabulary_search(), vocabulary_suggest()

Examples

## Not run: 
vocabulary(prefix = "cell")
vocabulary(prefix = "cell", limit = 4)
vocabulary(prefix = "axon")
vocabulary(id = "GO_0022407")

## End(Not run)

ropensci/rif documentation built on May 18, 2022, 6:40 p.m.