Learn R Programming

paleomorph (version 0.1.4)

dotcorr: Calculate 3D vector correlation matrix using the congruence coefficient. Skips any missing values in computation of correlation matrix

Description

Calculate 3D vector correlation matrix using the congruence coefficient. Skips any missing values in computation of correlation matrix. Gives an N x N correlation matrix.

Usage

dotcorr(A)

Arguments

A
An N x 3 x M array where N is the number of landmarks, 3 is the number of dimensions, and M is the number of specimens.

Value

Correlation matrix

Examples

Run this code
A <- array(rnorm(4 * 2 * 3), dim = c(2, 3, 4)) 
A.corr <- dotcorr(A)

Run the code above in your browser using DataLab