write_mps: write_mps

View source: R/write_mps.R

write_mpsR Documentation

write_mps

Description

Writes *.mps files from an array of 3D landmarks.

Usage

write_mps(arrayLMs = arrayLMs, dir = NULL, ID = NULL)

Arguments

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

Details

Takes a landmark array and saves the landmarks for each specimen as *.mps files.

Author(s)

Marta Vidal-Garcia

Examples

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 = "../")


marta-vidalgarcia/mesh_process documentation built on May 7, 2022, 12:08 a.m.