calcMeanShape {epm}R Documentation

Calculate mean shape per grid cell

Description

For an epmGrid object that contains geometric morphometric shape coordinates, calculate the per-grid-cell mean shape.

Usage

calcMeanShape(x)

Arguments

x

object of class epmGrid

Details

This function will ignore cells that are empty.

Value

a list with 2 elements: (1) matrix where nrow = number of grid cells and ncol = the number of data columns. Each row is a vector of mean shape coordinates. (2) a matrix of xy coordinates corresponding to those grid cells.

Author(s)

Pascal Title

Examples


tamiasEPM
tamiasEPM <- addTraits(tamiasEPM, tamiasTraits)
meanshape <- calcMeanShape(tamiasEPM)

head(meanshape[[1]])
head(meanshape[[2]])


[Package epm version 1.1.2 Index]