Norm a vector to unit length.
vnorm(x)
x
An n by 1 vector.
the scaled (i.e., unit length) input vector
Niels Waller
x <- rnorm(5) v <- vnorm(x) print(v)