r2morphoj: Export data to MorphoJ and Morphologika

View source: R/r2morphoj.r

r2morphojR Documentation

Export data to MorphoJ and Morphologika

Description

Export data to MorphoJ and Morphologika

Usage

r2morphoj(x, file, id.string = NULL)

r2morphologika(x, file = file, labels = NULL, labelname = NULL, ...)

Arguments

x

3-dimensionla array containing landmark data. E.g. the input/output from procSym.

file

character: name the output file

id.string

a string with ids or factors to append

labels

character vector specify labels to create for Morphologika

labelname

character: name the labels for Morphologika.

...

unused at the moment

Details

Export data to MorphoJ and Morphologika

Examples


if (require(shapes)) {
r2morphoj(gorf.dat,file="gorf.dat")

data <- bindArr(gorf.dat, gorm.dat, along=3)
datalabels <- c(rep("female",dim(gorf.dat)[3]),
rep("male",dim(gorm.dat)[3]))
labelname <- "sex"
r2morphologika(data, labels=datalabels, labelname= labelname, file="data.dat")
## cleanup
unlink(c("gorf.dat","data.dat"))
}

Morpho documentation built on June 22, 2024, 7:19 p.m.