update_existing_dataset: update_existing_dataset()

Description Usage Arguments Value

View source: R/update_existing_dataset.R

Description

Update a full microdata record in DDH (metadata + resources)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
update_existing_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())
)

Arguments

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

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

Value

character


tonyfujs/mdlibtoddh documentation built on March 14, 2021, 10 p.m.