readmulti.from1.nts: Read multiple nts files.

Description Usage Arguments Details Value See Also Examples

Description

Read multiple nts (or .dta) files that reflect one specimen to obtain landmark coordinates and combine them into a single array. Avoiding the bugs of geomorph::readland.nts, about which geomorph::readlmulti.nts is wrapped

Usage

1

Arguments

filelist

A vector containing the file paths to all the .nts files to be compiled

Details

This is a wrapper of readland.from1.nts to allow reading of landmark coordinates, in 2D or 3D, from several .nts (or .dta) files each containing one specimen, and compiling them into an array for proceeding with geomorph procedures.

Value

Modified from geomorph::readmulit.nts . . . Function returns a 3D array (p x k x n), where p is the number of landmark points, k is the number of landmark dimensions (2 or 3), and n is the number of specimens. The third dimension of this array contains names for each specimen, which are retrieved from the nts specimen labels, if those are available.

See Also

geomorph::readmulti.nts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(geomorph)
#load a two nts files

file1 <- system.file("extdata","echiostoma.nts",package = "geomorphcompanion")
file2 <- system.file("extdata","echiostoma2.nts",package = "geomorphcompanion")
files <- c(file1,file2)
nts.file <- readmulti.from1.nts(filelist=files)
print(nts.file)

#perform GPA and plot
gpa <- gpagen(nts.file)
plot(gpa)

ckenaley/geomorphcompanion documentation built on Dec. 19, 2021, 5:13 p.m.