#function for counting occurences of a char in string
#countchars
#' @export
countCharOccurrences <- function(char, s) {
s2 <- gsub(char,"",s)
return (nchar(s) - nchar(s2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.