get_datasetlevel_element: Get custom dataset-level metadata

View source: R/get_datasetlevel_element.R

get_datasetlevel_elementR Documentation

Get custom dataset-level metadata

Description

Get custom dataset-level metadata

Usage

get_datasetlevel_element(corpus, element_names, parse_function)

Arguments

corpus

(list) List of EML documents, output from import_corpus

element_names

(character) A string specifying the dataset-level. If the desired node is not an immediate child node of dataset, than supply a character vector to specify the xpath leading to the desired node. For example, to get geographicCoverage, say c("coverage", "geographicCoverage").

parse_function

(function) A parse function, taking a EML node and outputting a data.frame

Details

this function will loop through all datasets in the supplied corpus and output a table of parsed metadata from the specified node according to the supplied parse function. Note that dataset-level here is meant different from dataset metadata that get_dataset() gets. Dataset-level refers to nodes that have child nodes in themselves, such as maintenance, but appear under dataset in a EML document.

Value

(data.frame) A table containing parsed metadata from the specified node according to the supplied parse function.


atn38/MetaInbase documentation built on Feb. 26, 2023, 9:56 a.m.