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:
- variables not transformed,
- Raw version of the selected variables,
- Transformed version of the selected variables.