bd_retrieve_by_search: Retrieve the Results of an Advanced Search

View source: R/bd_retrieve_by_search.R

bd_retrieve_by_searchR Documentation

Retrieve the Results of an Advanced Search

Description

BacDive.DSMZ.de/AdvSearch returns a list of results, which you can retrieve in bulk via the URL of the results page. Please see the vignette "Pre-Configuring Advanced Searches and Retrieving the Results".

Usage

bd_retrieve_by_search(queryURL)

Arguments

queryURL

Mandatory character string. URL the search results page.

Value

A (large) list containing either a single BacDive dataset in case your parameter / search was unambiguous, or if ambiguous: all matching datasets. Read BacDive.DSMZ.de/api/bacdive to learn more.

Examples

plant_animal_pathogens <-
  bd_retrieve_by_search(
    queryURL = paste(
      "https://bacdive.dsmz.de/advsearch?site=advsearchsearch",
      "params%5B5%5D%5Bsearchterm%5D=1",
      "searchparams%5B157%5D%5Bsearchterm%5D=1",
      "searchparams%5B158%5D%5Bsearchterm%5D=1",
      "advsearch=search",
      sep = "&"
    )
  )

TIBHannover/BacDiveR documentation built on June 2, 2022, 2:51 p.m.