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.

create_entity(meta_list, file_dir = "", dataset_id, entity)

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 if "". 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.

Value

(list) A list object containing one data entity.