pythagoras | R Documentation |
Calculates the length of a vector using the Pythagorean theorem.
pythagoras(x, y)
x |
A |
y |
A |
Returns a numeric
vector
with the same length as x
and y
,
reflecting the lengths of the hypotenuse of the right triangles.
Pepijn de Vries
pythagoras(x = c(1, 2), y = c(1, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.