l2norm | R Documentation |
Calculated the L2 norm.
l2norm(x, na.rm = TRUE)
x |
Objects for which the L2 norm is to be calculated |
na.rm |
Whether or not to remove NA values from the calculation |
The L2 norm of x
Shili Lin <shili@stat.ohio-state.edu>
set.seed(122) vals <- sample(1:100, 10) l2norm(vals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.