Description Usage Arguments Value Examples
Calculates the length of a vector, also known as the norm if there are more than two elements in the vector.
1 | norm_vector(x)
|
x |
Vector |
Numeric, norm of the input vector
1 2 3 4 5 | x <- c(3, 8)
norm_vector(x)
x <- c(3, 4, 5, 2)
norm_vector(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.