2.3 Codify petrographical variables

Create a two-column data frame containing the original names of petrographic variables and their respective codes:

varCode <- code_variables(amphorae)

Petrographic variables must be named following cerUB naming system. Consult the documentation on the “amphorae” dataset by running:

?amphorae

The result of the code_variables function is used in the apply_ordination function for protocols “2a”, “2b”, “3”, and “4” (i.e., whenever there are ordinal input variables). The data frame containing the codification (‘varCode’) is attached as “ordination_object$variable_tags” to the resulting ordination object.

Variable name Variable code
Site_Name Site_Name
LOCATION_SITE_INITIALS LOCATION_SITE_INITIALS
CHARAC CHARAC
FabricGroup FabricGroup
ChemReferenceGroup ChemReferenceGroup
INCLUS_DISTRIB I1
INCLUS_ORIENT I2
TEMP F1
ATM F2
POST_ATM F3
VOID_OVERALL V1
VOID_VESIC_MEGA V2