tag2array | R Documentation |
This function inputs *tag files into an array of dimensions p, k, n
tag2array(dir = NULL, ID = NULL, string_del = NULL, propagated = FALSE, save.txt = FALSE)
dir |
Optional argument. Directory where the *.ascii files are. Default (NULL) is the current working directory. |
ID |
Optional argument for specimens IDs. The default (NULL) is the file names. |
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. |
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.
Marta Vidal-Garcia
# array <- tag2array() # If we have other *.tag files in another directory and with the suffix "skull" # For example: "spec1_skull.tag", "spec2_skull.tag", "spec3_skull.tag", etc. # dir <- "~/Documents/skull_LMs") # skull_array <- tag2array(dir = skull_dir, string_del="skull")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.