vecnorm | R Documentation |
Calculates the Euclidean norm across each row of a given matrix.
vecnorm( x )
x |
A matrix with numeric, real values. |
Calculates the Euclidean norm of a vector.
values <- matrix( c( 1 , 2 , 3 ) , ncol = 3 )
vecnorm( values ) # should yield 3.741657
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.