2.10 Save transformed geochemical data to file (optional)

There is no need to save it in the environment, because apply_ordination will transform the data internally and save the results in “ordination_object$transformed_data”, when applicable.

write(transform_coda(cleanAmphorae,
                     coda_variables = chemVars16,
                     method = c("CLR")),
      file = paste(directories$transCoDa, 
                   "transAmphorae_clr.csv", 
                   sep = "/"))

In the output table, columns will be ordered as:

  1. variables not transformed,
  2. Raw version of the selected variables,
  3. Transformed version of the selected variables.