Learn R Programming

Morpho (version 2.12)

r2morphoj: 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

Run this code

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"))
}

Run the code above in your browser using DataLab