#' @title cut Remove or delete Leading / Trailing Whitespace blanks of a matrix or data.frame with character columns
#' @param x data.frame or matrix
#' @export
RemoveBlanks <- function(x){
xf <- x
colClass <- sapply(xf, class)
chcol <- as.numeric(which(colClass == "character", arr.ind = T))
xf[, chcol] <- sapply(xf[, chcol], trimws)
return(xf)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.