Learn R Programming

epm (version 1.1.5)

calcMeanShape: 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)

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.

Arguments

x

object of class epmGrid

Author

Pascal Title

Details

This function will ignore cells that are empty.

Examples

Run this code
# \donttest{
tamiasEPM
tamiasEPM <- addTraits(tamiasEPM, tamiasTraits)
meanshape <- calcMeanShape(tamiasEPM)

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

Run the code above in your browser using DataLab