array2tag: array2tag

View source: R/array2tag.R

array2tagR Documentation

array2tag

Description

This function inputs an array of dimensions p, k, n and saves *tag files

Usage

array2tag(dir = NULL, ID = NULL, string_del = NULL, propagated = FALSE, save.txt = FALSE)

Arguments

ID

Optional argument for specimens IDs. The default (NULL) is the file names.

dir

Optional argument. Directory where the *.ascii files are. Default (NULL) is the current working directory.

string_del

Optional argument. Indicates pattern in the specimens names to be deleted. Use only if ID = NULL.

propagated

Optional argument indicating if the landmarks have been propagated (extra line). The default is FALSE.

save.txt

Optional argument. Indicates whether to also save *.txt files with the landmark coordinates.

Value

This function returns an array of dimensions (p, k, n), in which p is the number of landmarks, k = 3 (number of dimensions), and n is the number of specimens.

Author(s)

Marta Vidal-Garcia

Examples

# my_array <- array(1:10, c(5,3,4))
# dimnames(my_array)[[3]] <- c("spec1", "spec2", "spec3", "spec4")
# array2tag(my_array)
  

marta-vidalgarcia/morpho.tools.GM documentation built on April 7, 2023, 12:54 a.m.