"get.cumsum" <- function(mat) { # take an argument of matrix and reurn the cumsum by col t(apply(mat,1,cumsum)) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.