len | R Documentation |
len
calculates the Euclidean length (also called Euclidean norm) of a vector or the
length of each column of a numeric matrix.
len(X)
X |
a numeric vector or matrix |
a scalar or vector containing the length(s)
norm
for more general matrix norms
len(1:3)
len(matrix(1:9, 3, 3))
# distance between two vectors
len(1:3 - c(1,1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.