## Not run: ------------------------------------
# ## After obtaining an API key from Enigma's website, pass in your key to
# ## the function call or set in your options (see above instructions for the
# ## key parameter) If you pass in your key to the function call use the
# ## key parameter
#
# # Fetch a dataset
# res <- enigma_fetch(dataset = 'edu.umd.start.gtd')
# enigma_read(res)
#
# # Use the select parameter to limit fields returned
# res <- enigma_fetch(dataset = 'edu.umd.start.gtd',
# select = c("country_txt", "resolution", "attacktype1"))
# enigma_read(res)
#
# # Use the search parameter to query entire table or particular fields
# res <- enigma_fetch(dataset = 'edu.umd.start.gtd', search = "armed")
# enigma_read(res)
#
# # Use the search parameter to query entire table or particular fields
# res <- enigma_fetch(dataset = 'edu.umd.start.gtd',
# where = "nkill > 0", select = c("country_txt", "attacktype1", "nkill"))
# enigma_read(res)
## ---------------------------------------------
Run the code above in your browser using DataLab