powered by
Make input vector unit length, i.e. norm == 1
unit(vector)
a vector
a unit length vector
Other helpers: deg(), rad()
deg()
rad()
# NOT RUN { unit(c(1,2,3)) # }
Run the code above in your browser using DataLab