conversion_and_lookup: Conversion and lookup functions

entity_type_to_table_nameR Documentation

Conversion and lookup functions

Description

These functions convert names and allow to look up specific columns.

Usage

entity_type_to_table_name(entity_type)

table_name_to_entity_type(table_name)

namecol_for_entity_type(entity_type)

idcol_for_entity_type(entity_type)

col_name_has_aux(entity_type, col_name)

sidora_col_name_has_aux(sidora_col_name)

Arguments

entity_type

character. An entity type (e.g. site, sample, individual etc.)

table_name

character. A table name (e.g. TAB_Site, TAB_Sample etc.)

col_name

character. A pandora table column name (e.g. Full_Site_Id, Id, etc.)

sidora_col_name

character. A sidora table column name that includes the entity_type (e.g. site.Full_Site_Id, batch.Id, etc.)


sidora-tools/sidora.core documentation built on April 30, 2023, 8:42 p.m.