Luca, The array you are creating using abind will have 3 dimensions. After you have read the data into that array, simply assign the 3rd dimension of the array the list of file names for the specimens.
dimnames(mydata)[[3]] <- myspec.names where ‘myspec.names’ is a list of specimen names from the files (you could even extract the list from the folder you are reading the specimens from). Best, Dean Dr. Dean C. Adams Director of Graduate Education, EEB Program Professor Department of Ecology, Evolution, and Organismal Biology Iowa State University https://www.eeob.iastate.edu/faculty/adams/ phone: 515-294-3834 From: [email protected] <[email protected]> On Behalf Of luca francesco Russo Sent: Friday, July 17, 2020 10:37 AM To: [email protected] Subject: [MORPHMET2] ID to the various individuals Dear members of the group, I started using geomorph and R recently for my PhD research project, and perhaps my question may seem a little trivial. Through Meshlab I am taking the landmarks on 3d skull reconstructions, and I managed to import the points in R through the Morpho read.mpp function. On the web I found a function that allows to automatically load the landmarks of individuals in a single array landmarks <- NULL for (i in 1: length (files)) {landmarks <- abind (landmarks, read.pp (files [i]), along = 3)}. However my doubt is how can I give an ID to the various individuals once loaded in R. I understand that geomorph works with lists (and geomorph.data.frame), but the lists are unrelated elements? I thank you for your attention, best regards, Luca -- You received this message because you are subscribed to the Google Groups "Morphmet" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/morphmet2/CAKpSRZG%2Bzmx0z5wmGsDWMAO21mmKJEq0JitPkeTKfa8MPSntRQ%40mail.gmail.com<https://groups.google.com/d/msgid/morphmet2/CAKpSRZG%2Bzmx0z5wmGsDWMAO21mmKJEq0JitPkeTKfa8MPSntRQ%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Morphmet" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/morphmet2/CH2PR04MB6617DC5B774F77A34B4242BBA27D0%40CH2PR04MB6617.namprd04.prod.outlook.com.
