powered by
Returns the normalised vector, where the sum of squares is equal to 1
norm_vec(x)
numeric vector
x <- rnorm(5) norm_vec(x)
Run the code above in your browser using DataLab