get_read_depth <- function(data=NULL, delimiter=':', depth_index=4) {
if (is.null(data)) stop("Mandatory argument data is missing")
return(as.numeric(unlist(strsplit(x = data, split = delimiter))[depth_index]))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.