Learn R Programming

sbtools (version 1.3.2)

query_sb_datatype: Query SB for specific data type

Description

Queries ScienceBase for items with matching datatype.

Usage

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

Value

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

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.

Examples

Run this code
# \donttest{
#query for items with WFS Layer data
query_sb_datatype('Static Map Image')

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

Run the code above in your browser using DataLab