strip <-
function # ' Remove leading and trailing whitespace
(
s # ^ String
)
{
as.character(sapply(s, function(x)
gsub("^\\s+", "", gsub("\\s+$", "", x))))
} # ^ String without leading and trailing whitespace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.