write_mps | R Documentation |
Writes *.mps files from an array of 3D landmarks.
write_mps(arrayLMs = arrayLMs, dir = NULL, ID = NULL)
arrayLMs |
an object of the class "array" that contains three-dimensional landmarks for 'n' specimens |
dir |
optional variable that selects which directory the mps files should be saved to |
ID |
optional vector with IDs for saving the *.mps files |
Takes a landmark array and saves the landmarks for each specimen as *.mps files.
Marta Vidal-Garcia
test1 <- array(data = 1:10, dim = c(5,3,2)) write_mps(arrayLMs = test1, ID = c("spec1", "spec2")) test2 <- array(data = 1:10, dim = c(5,3,2), dimnames = list(c("LM1", "LM2", "LM3", "LM4", "LM5"), c("x", "y", "z"), c("spec1", "spec2"))) write_mps(arrayLMs = test2) test3 <- array(data = 1:10, dim = c(5,3,2)) dimnames(test3)[[3]] <- c("spec1", "spec2") write_mps(arrayLMs = test3, dir = "../")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.