It's a function of finding the distance between two observations.
Dist(x,y)
x
Numeric. A vector denoting an observation.
y
A list.
Yarong Yang