Learn R Programming

geomorph (version 4.0.8)

readmulti.tps: Read and combine multiple tps files

Description

Read multiple tps files to obtain landmark coordinates and combine them into a single array

Usage

readmulti.tps(filelist, ...)

Value

Function returns a (p x k x n) array, where p is the number of landmark points, k is the number of landmark dimensions (2 or 3), and n is the total number of specimens across all tps files included in the folder read.

Arguments

filelist

A vector containing the file paths to all the tps files to be compiled

...

other arguments to be passed to readland.tps

Author

Antigoni Kaliontzopoulou

Michael Collyer

Details

This is a wrapper of readland.tps to allow reading landmark coordinates, in 2D or 3D, from several tps files , and compiling them into an array for proceeding with GM procedures.

The arguments specID and negNA of readland.tps can be directly set through this function.