getIndex <-
function(idx){
rrow <- ceiling((-1 + sqrt(8*idx + 1))/2)
ccol <- idx - rrow*(rrow - 1)/2
ans <- c(rrow, ccol)
return(ans)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.