Description Usage Arguments Value
View source: R/add_new_dataset.R
Add a full microdata record to DDH (metadata and resources)
1 2 3 4 5 6 7 8 9 10 | add_new_dataset(
md_internal_id,
md_token,
master,
ddh_fields = ddhconnect::get_fields(),
lovs = ddhconnect::get_lovs(),
root_url = dkanr::get_url(),
iso_3_df = ddhconnect::get_iso3(),
credentials = list(cookie = dkanr::get_cookie(), token = dkanr::get_token())
)
|
md_internal_id |
character: Microdata internal ID of the dataset to be added |
md_token |
character: Microdata API authentication token |
master |
dataframe: Master lookup table, output of mdlibtoddh::get_ddh_records_status() |
ddh_fields |
dataframe: table of all the data catalog fields by node type |
lovs |
dataframe: lookup table of the data catalog tids and values |
root_url |
character: Root URL to use for the API (Staging or Production) |
iso_3_df |
dataframe: Table of iso_3 codes and corresponding country names |
credentials |
list: DDH API authentication token and cookie |
character
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.