Nothing
etoa <- function(x) {
dm <- dim(x)
n <- dm[1] ; d <- dm[2]
x2 <- x^2
phi <- matrix(NA, n, d - 1)
phi[, 1] <- acos( x[, 1] )
for ( i in 2:(d - 1) ) phi[, i] <- acos( x[, i] / sqrt( Rfast::rowsums(x2[, i:d]) ) )
ep <- which(x[, d - 1] < 0 )
if ( length(ep) > 0 ) phi[ep, d - 1] <- 2 * pi - x[ep, d - 1]
phi
}
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.