write.markups.fcsv: Export landmark data into FCSV file

write.markups.fcsvR Documentation

Export landmark data into FCSV file

Description

This function export landmark coordinates into an FCSV file By default coordinates are assumed to be written in LPS, but can be change to RAS using the @param coord option. a fcsv file,

Usage

write.markups.fcsv(pts = NULL, outfile = NULL, coord = "LPS")

Arguments

pts

a matrix/array that contains landmark coordinates
nrow = number of coordinates
ncol = dimensions
Row names are assigned from the labels in the FCSV file
Column names are assigned as "x", "y", and "z", depending on the dimension

outfile

this parameter specifies a file to be created (e.g., a directory leads to a particular FCSV file; see example)

Value

A FCSV file of morphometric data
The label for each landmark is the rowname of the input landmark matrix

Examples

lms = read.markups.fcsv(file = url("https://raw.githubusercontent.com/SlicerMorph/SampleData/master/Gorilla_template_LM1.fcsv"))
write.markups.fcsv(pts=lms, outfile = "Your_Directory/test.fcsv", coord="LPS")

chz31/SlicerMorphR documentation built on Feb. 10, 2023, 11:56 p.m.