Nothing
normvec <- function(x) {
# normalize a vector to unit length
if (NROW(x) > 1 & NCOL(x) > 1)
stop("x should be a vector or matrix with 1 row/column.")
if (NCOL(x) > 1)
prd <- tcrossprod(x) else
prd <- crossprod(x)
length <- sqrt(c(prd))
v <- x/length
attr(v, "length") <- length
v
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.