Learn R Programming

Momocs (version 1.4.1)

d: A wrapper to calculates euclidean distances between two points

Description

The main advantage over ed is that it is a method that can be passed to different objects and used in combination with measure. See examples.

Usage

d(x, id1, id2)

Value

numeric

Arguments

x

a Ldk (typically), an Out or a matrix

id1

id of the 1st row

id2

id of the 2nd row

See Also

if you want all pairwise combinations, see coo_truss

Examples

Run this code
# single shape
d(wings[1], 1, 4)
# Ldk object
d(wings, 1, 4)
# Out object
d(hearts, 2, 4)

Run the code above in your browser using DataLab