landmarkListToMatrix: Converts a landmark list to a landmark matrix

Description Usage Arguments Value Author(s) See Also Examples

View source: R/landmarkListToMatrix.R

Description

Converts a landmark list to a landmark matrix. The landmark matrix is identical to the matrix that would be returned if the landmark files were sent directly to readLandmarksToMatrix.

Usage

1

Arguments

lm.list

a landmark list. See readLandmarksToList.

Value

a landmark matrix.

Author(s)

Aaron Olsen

See Also

readLandmarksToList, readLandmarksToMatrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## GET FILE DIRECTORY FOR PACKAGE FILES
fdir <- paste0(path.package("StereoMorph"), "/extdata/")

## SET FILES TO LOAD - TWO DIFFERENT 3D POINT SETS
file <- paste0(fdir, "lm_3d_even_a", 1:2, ".txt")

## READ LANDMARKS INTO A LIST
lm.list <- readLandmarksToList(file=file, row.names=1)

## CONVERT LANDMARK LIST TO LANDMARK MATRIX
lm.matrix <- landmarkListToMatrix(lm.list)

lm.matrix

StereoMorph documentation built on May 26, 2021, 1:07 a.m.