Description Usage Arguments Details Value Author(s) References Examples

Matches two arrays by their dimnames

1 | ```
match.datasets(data.1, data.2)
``` |

`data.1` |
an object of the class "array" that contains three-dimensional landmarks for structure #1 (e.g. skull) |

`data.2` |
an object of the class "array" that contains three-dimensional landmarks for structure #2 (e.g. mandible) |

Takes the two translated arrays and joined them by dimnames. Unmatched datasets (specimens missing in data.1 or data.2) are deleted.

This function returns a list with the two translated arrays of dimensions (p, 3, n), in which dimnames associated with each specimen (n) are in the same order.

Marta Vidal-Garcia

M. Vidal-GarcĂa, L. Bandara and J.S. Keogh. 2018. ShapeRotator: An R tool for standardized rigid rotations of articulated three-dimensional structures with application for geometric morphometrics. Ecology and Evolution. DOI: 10.1002/ece3.4018

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
# We need to match the dimnames of the translated datasets, but we have two
# extra specimens in data.1_t
length(dimnames(data.1_t)[[3]]) # n=12
length(dimnames(data.2_t)[[3]]) # n=10
matched <- match.datasets(data.1_t, data.2_t)
# When we matched the arrays, only matrices from specimens present in both
# datasets will be kept
length(dimnames(matched$matched1)[[3]]) # n=10
length(dimnames(matched$matched2)[[3]]) # n=10
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.