#' @export
columnwiseExponentiation <- function(iBase, iExponent) {
nBase <- length(iBase)
ce <- iExponent
for (column in 1:nBase) {
base <- iBase[column]
exponent <- iExponent[,column]
ce[,column] <- base ^ exponent
}
return(ce)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.