ascii2lm: ascii2lm

View source: R/ascii2lm.R

ascii2lmR Documentation

ascii2lm

Description

This function inputs landmark .ascii or .landmarkAscii files (from Amira or Avizo) into an array of dimensions p, k, n

Usage

ascii2lm(dir = NULL, ID = NULL, string_del = NULL)

Arguments

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.

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

# 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")
  

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