#' This is a function remove space characters from the head and tail of a string
#' @param
#' @keywords string
#' @export
#' @examples
#' trim(' cats haunt me ')
trim <- function (j) {
gsub("^\\s+|\\s+$", "", j)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.