Learn R Programming

Momocs (version 1.4.1)

ldk_check: 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)

Value

an array of (x; y) coordinates.

Arguments

ldk

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

See Also

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

Examples

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

Run the code above in your browser using DataLab