dsc_search: DSC search results

Description Usage Arguments Value Examples

View source: R/drugshortagescanada.R

Description

DSC search results

Usage

1
dsc_search(..., single_page = F, flattened = T)

Arguments

...

A named list of query parameters. See the DSC Web API documentation for details on query parameters: https://www.drugshortagescanada.ca/blog/52

single_page

If TRUE only returns the first page of results as a JSON object. This is useful only if you care about the metadata about the search returned by the database. See the API documentation for details.

flattened

If TRUE returns a flat-ish data.frame of the results using jsonlite::flatten. This does not apply if single_page = TRUE

Value

Results as a data.fram, or JSON object if single_page = T

Examples

1
results = dsc_search(term = "venlafaxine")

pipitone/drugshortagesr documentation built on Jan. 13, 2020, 3:21 p.m.