array.to: Array to ...

View source: R/array.to.R

array.toR Documentation

Array to ...

Description

Converts a "gpagen" array to a "list" or a "matrix"

Usage

array.to(array, to)

Arguments

array

A "gpagen" object or an array of landmarks

to

Either "list" or "matrix".

Author(s)

Thomas Guillerme

Examples

## Loading the plethodon dataset
require(geomorph)
data(plethodon)

## Performing a procrustes superimposition
procrustes <- geomorph::gpagen(plethodon$land, print.progress = FALSE)

## Transforming it into a list
array.to(procrustes, "list")

## Transforming it into a matrix
array.to(procrustes, "matrix")



TGuillerme/landvR documentation built on July 4, 2025, 10:16 p.m.