Learn R Programming

Morpho (version 1.0-1)

vecx: convert an 3D array into a matrix

Description

converts a 3D-array (e.g. containing landmark coordinates) into a matrix, one row per specimen.

Usage

vecx(x, byrow = FALSE)

Arguments

x
array
byrow
logical: if TRUE, the resulting vector for each specimen will be x1,y1,z1,x2,y2,z2,..., and x1,x2,...,y1,y2,...,z1,z2,... otherwise (default)

Value

  • returns a matrix with one row per specimen

Examples

Run this code
library(shapes)
data <- vecx(gorf.dat)

Run the code above in your browser using DataLab