readland.from1.nts: Read single *.nts file containing landmark

Description Usage Arguments Value See Also Examples

View source: R/load.R

Description

A function modified from geomorph::readland.nts to take a single .nts file and return an array that can be read by the geomorph package. Avoids the bugs of geomorph::readland.nts

Usage

1

Arguments

file

Path to the input file

Value

Modified from geomorph::readland.nts . . . Function returns a 3D array (p x k x n=1), 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 (one in this limited case). The third dimension of this array contains a name for the specimen which is obtained from the names in the *.nts file.

See Also

geomorph::readland.nts

Examples

1
2
3
4
5
#load a single nts file

file <- system.file("extdata", "echiostoma.nts", package = "geomorphcompanion")
nts.file <- readland.from1.nts(file=file)
print(nts.file)

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