unit | R Documentation |
Make input vector unit length, i.e. norm == 1
unit(vector)
vector |
a vector |
a unit length vector
Other helpers:
deg()
,
rad()
unit(c(1,2,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.