ldk_check {Momocs}R Documentation

Checks 'ldk' shapes

Description

A simple utility, used internally, mostly by Ldk methods, in some graphical functions, and notably in l2a. Returns an array of landmarks arranged as (nb.ldk) x (x; y) x (nb.shapes), when passed with either a list, a matrix or an array of coordinates. If a list is provided, checks that the number of landmarks is consistent.

Usage

ldk_check(ldk)

Arguments

ldk

a matrix of (x; y) coordinates, a list, or an array.

Value

an array of (x; y) coordinates.

See Also

Other ldk helpers: def_links(), links_all(), links_delaunay()

Examples

#coo_check('Not a shape')
#coo_check(matrix(1:10, ncol=2))
#coo_check(list(x=1:5, y=6:10))

[Package Momocs version 1.4.1 Index]