#' What first index is not a 0 in cumulative numeric vector?
#'
#' @param inVec Numeric cumulative vector.
#' @return Index of first element that is not a 0.
#' @export
whichFirstIndex_isNonZero = function(inVec){
inVec[inVec!=0] = 1
o = match(1,inVec)
o
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.