## 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
#
# # White house visitor list
# enigma_data(dataset='us.gov.whitehouse.visitor-list', limit = 10)
#
# # White house visitor list - selecting three columns
# enigma_data(dataset='us.gov.whitehouse.visitor-list',
# select=c('namelast','visitee_namelast', 'last_updatedby'))
#
# # White house visitor list - sort by last name
# enigma_data(dataset='us.gov.whitehouse.visitor-list', sort='+namelast',
# limit = 10)
#
# # White house visitor list - get rows where total_people > 5
# enigma_data(dataset='us.gov.whitehouse.visitor-list',
# where='total_people > 5', limit = 10)
#
# # White house visitor list - search for Vitale in full name field
# ## remove the 2nd at symbol before running
# # enigma_data(dataset='us.gov.whitehouse.visitor-list',
# # search='@namefull=Vitale')
#
# # White house visitor list - search for SOPHIA in first name field
# ## remove the 2nd at symbol before running
# # enigma_data(dataset='us.gov.whitehouse.visitor-list',
# # search='@namefirst=SOPHIA')
#
# # Domestic Market Flight Statistics (Final Destination)
# dataset='us.gov.dot.rita.trans-stats.air-carrier-statistics.t100d-market-all-carrier'
# enigma_data(dataset=dataset, limit = 10)
#
# # Search for 'casa' in the Mexico's Social Security Department dataset
# enigma_data('gov.mx.imss.compras.main', search='casa',
# select=c('proveedor','fecha'), limit = 10)
## ---------------------------------------------
Run the code above in your browser using DataLab