conversion_and_lookup: Conversion and lookup functions

Description Usage Arguments

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 Aug. 31, 2020, 4:36 p.m.