direction | R Documentation |
Calculate the direction of a vector based on its x and y components.
direction(x, y)
x |
horizontal component (numeric vector) |
y |
vertical component (numeric vector) |
the angle of the vector, in degrees clockwise from 12 o'clock
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.