Nothing
#' Take matrix to a power
#'
#' @param x matrix
#' @param r numeric (power)
#' @return a matrix
mkPower<-function(x,r) {
n<-nrow(x)
tmp <- abs((x+diag(n))^r)-diag(n)
tmp[!is.finite(tmp)] <- max(tmp[is.finite(tmp)]) #Was bug
return(tmp)
}
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.