d: A wrapper to calculates euclidean distances between two...

View source: R/core-premodern.R

dR Documentation

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)

Arguments

x

a Ldk (typically), an Out or a matrix

id1

id of the 1st row

id2

id of the 2nd row

Value

numeric

Note

On Out objects, we first get_ldk.

See Also

if you want all pairwise combinations, see coo_truss

Examples

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

Momocs documentation built on Nov. 13, 2023, 5:07 p.m.

Related to d in Momocs...