filter.shapes: Filter landmark coordinate shape data via a factor

filter.shapesR Documentation

Filter landmark coordinate shape data via a factor

Description

The input must be a list containing one or more elements of shape data. The function will determine the dimensionality of each element and subset them accordingly. Matrices (2-dimensional elements) will have rows selected according to index. Arrays (3-dimensional elements) will have specimens (the third dimension) selected.

Usage

filter.shapes(x, index, index.description = NULL)

Arguments

x

A list containing shape data in coords, gpagen, or a geomorph.data.frame in gdf, as well as (optionally) metadata.

index

A vector for subsetting (numerical or logical). This value should correspond to metadata row numbers and specimemn numbers of the coordinate array.

index.description

A character description of the filter criteria to be added to data provenance.

Source

Dave Angelini david.r.angelini@gmail.com [aut, cre]


aphanotus/borealis documentation built on Nov. 4, 2022, 8:44 p.m.