enigma_metadata: Search for metadata on a dataset from Enigma.

Description Usage Arguments Details Value References Examples

Description

Search for metadata on a dataset from Enigma.

Usage

1
enigma_metadata(dataset = NULL, key = NULL, ...)

Arguments

dataset

Dataset name. Required.

key

(character) Required. An Enigma API key. Supply in the function call, or store in your .Renviron file like ENIGMA_KEY=your key), or in your .Rprofile file as options(enigmaKey = "<your key>"), Obtain an API key by creating an account with Enigma at http://enigma.io, then obtain an API key from your account page.

...

Named curl options passed on to HttpClient

Details

Notice when you run the examples that the format of output is different for the "parent nodes" vs. the "table nodes". Where the parent nodes have ouput$meta slots for paths, immediate nodes and children tables, while the table nodes have ouput$meta slots for info, table, ancestor datapaths, database boundary datapath, database boundary label, database boundary tables, and paths, and an additional slot for description of table column attributes.

Value

A list of length 3:

References

https://app.enigma.io/api#metadata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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

## UCLA Ethnic power relations dataset
enigma_metadata(dataset = 'edu.ucla.epr')

# Table node response attributes
## US white house visitor list table
enigma_metadata(dataset = 'us.gov.whitehouse.visitor-list')

## End(Not run)

rOpenGov/enigma documentation built on May 26, 2019, 7:47 p.m.