Learn R Programming

sbtools (version 1.3.2)

query_sb_text: 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)

Value

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

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.

Examples

Run this code
# \donttest{
#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')
# }

Run the code above in your browser using DataLab