query_sb_text: Query SB for items containing specific text

View source: R/query_sb.R

query_sb_textR Documentation

Query SB for items containing specific text

Description

Queries for ScienceBase items that have matching text in the title or description

Usage

query_sb_text(text, ..., limit = 20)

Arguments

text

Text string for search

...

Additional parameters are passed on to GET

limit

Maximum number of returned items. Will do paging to retrieve results when limit is over 1000. Use with caution, queries 10k results are slow.

Value

A list of sbitem objects. List of length 0 means no matches were found.

Examples


#query for a person's name
query_sb_text('Luna Leopold')

#query for one of the old river gaging stations
query_sb_text('Lees Ferry')



USGS-R/sbtools documentation built on Feb. 21, 2024, 10:15 a.m.