create_entity: Create EML entity list object.

View source: R/create_entity.R

create_entityR Documentation

Create EML entity list object.

Description

Use to examine entity list structure or troubleshoot invalid EML, or to put together custom entity lists. Use create_entity_all for common EML generation usage, which loops this function over all entities listed in a dataset under the hood.

Usage

create_entity(
  meta_list,
  file_dir = getwd(),
  dataset_id,
  entity,
  skip_checks = FALSE
)

Arguments

meta_list

(character) A list of dataframes containing metadata returned by get_meta.

file_dir

(character) Path to directory containing flat files (data files). Defaults to current R working directory. Note: if there's information on "entityrecords", "filesize", "filesize_units", and "checksum" columns in the entities table in metabase, there is no need for reading the actual files, so this field can stay NULL.

dataset_id

(numeric) A dataset ID.

entity

(numeric) An entity number.

skip_checks

(logical) Whether to skip checking for attribute congruence. Defaults to FALSE.

Value

(list) A list object containing one data entity.


atn38/metabase-to-eml-R documentation built on June 12, 2025, 6:18 p.m.