I'm doing my thesis using R and geomorph and I need to produce some PCAs for an anlysis. I've got a TPS file with IDspecimen's correspondent to thier photo number. Also in the CSV the information are marked by the same photo number. How can I produce a TPS file, with the CSV information attached to each specimen? So far I only managed to select on the csv the speciment present in the file, but I don't know how to merge them.
tps<-readland.tps("data.TPS", specID="imageID")
dat<-read.csv2("CSV.csv")
e<-match(dimnames(tps)[[3]] ,Parametri$foto)
table(is.na(e))
dimnames(tps)[[3]][is.na(e)]
View(Parametri)