def_slidings: Defines sliding landmarks matrix

Description Usage Arguments Details See Also Examples

View source: R/cl-utilities.R

Description

Defines sliding landmarks matrix

Usage

1
def_slidings(Coo, slidings)

Arguments

Coo

an Ldk object

slidings

a matrix, a numeric or a list of numeric. See Details

Details

$slidings in Ldk must be a 'valid' matrix: containing ids of coordinates, none of them being lower than 1 and higher the number of coordinates in $coo.

slidings matrix contains 3 columns (before, slide, after). It is inspired by geomorph and should be compatible with it.

This matrix can be passed directly if the slidings argument is a matrix. Of course, it is strictly equivalent to Ldk$slidings <- slidings.

slidings can also be passed as "partition(s)", when sliding landmarks identified by their ids (which are a row number) are consecutive in the $coo.

A single partition can be passed either as a numeric (eg 4:12), if points 5 to 11 must be considered as sliding landmarks (4 and 12 being fixed); or as a list of numeric.

See examples below.

See Also

Other ldk/slidings methods: add_ldk, def_ldk, get_ldk, get_slidings, rearrange_ldk, slidings_scheme

Examples

1
#waiting for a sliding dataset...

Momocs documentation built on Sept. 28, 2017, 9:04 a.m.