r2morphoj | R Documentation |
Export data to MorphoJ and Morphologika
r2morphoj(x, file, id.string = NULL)
r2morphologika(x, file = file, labels = NULL, labelname = NULL, ...)
x |
3-dimensionla array containing landmark data. E.g. the input/output
from |
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 |
Export data to MorphoJ and Morphologika
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"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.