distance1d | R Documentation |
distance1d()
computes 1D Euclidean distances.
distance1d(x, y)
x |
Either a Coord1D or Point1D class object |
y |
Either a Coord1D or Point1D class object |
p <- as_coord1d(x = 1:4)
distance1d(p, as_coord1d(0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.