query_sb_datatype: Query SB for specific data type

View source: R/query_sb.R

query_sb_datatypeR Documentation

Query SB for specific data type

Description

Queries ScienceBase for items with matching datatype.

Usage

query_sb_datatype(datatype, ..., limit = 20)

Arguments

datatype

Character string indicating datatype. See sb_datatypes for full list of available datatypes.

...

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 items with WFS Layer data
query_sb_datatype('Static Map Image')

#query for US Topo maps
query_sb_datatype('Map Service')



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