powered by
l2norm(x, na.rm = TRUE)
x
set.seed(122) vals <- sample(1:100, 10) l2norm(vals)
Run the code above in your browser using DataLab