# Suggest datasets of type "OCCURRENCE".
dataset_suggest(query="Amazon", type="OCCURRENCE")
# Suggest datasets tagged with keyword "france".
dataset_suggest(keyword="france")
# Suggest datasets owned by the organization with key
# "07f617d0-c688-11d8-bf62-b8a03c50a862" (UK NBN).
head(dataset_suggest(owningOrg="07f617d0-c688-11d8-bf62-b8a03c50a862"))
# Fulltext search for all datasets having the word "amsterdam" somewhere in
# its metadata (title, description, etc).
head(dataset_suggest(query="amsterdam"))
# Limited search
dataset_suggest(type="OCCURRENCE", limit=2)
dataset_suggest(type="OCCURRENCE", limit=2, start=10)
# Return just descriptions
dataset_suggest(type="OCCURRENCE", description=TRUE)
# Return metadata in a more human readable way (hard to manipulate though)
dataset_suggest(type="OCCURRENCE", pretty=TRUE)
# Search by country code. Lookup isocodes first, and use US for United States
isocodes[agrep("UNITED", isocodes$gbif_name),]
head(dataset_suggest(country="US"))
# Search by decade
head(dataset_suggest(decade=1980))
# httr options
library('httr')
dataset_suggest(type="OCCURRENCE", limit=2, config=verbose())
Run the code above in your browser using DataLab