ascii2lm | R Documentation |
This function inputs landmark .ascii or .landmarkAscii files (from Amira or Avizo) into an array of dimensions p, k, n
ascii2lm(dir = NULL, ID = NULL, string_del = NULL)
dir |
Optional argument. Directory where the .ascii or .landmarkAscii 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. |
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 <- ascii2lm()
# If we have *.tag file in another directory and with the suffix "skull"
# For example: "spec1_skull.ascii", "spec2_skull.landmarkAscii", "spec3_skull.ascii", etc.
# dir <- "~/Documents/skull_LMs")
# skull_array <- ascii2lm(dir = skull_dir, string_del="skull")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.