This removes spaces from a before and after words in a character vector. It was adapted from a similar function in adegenet.
is a vector of characters containing spaces to be removed.
A vector of characters without spaces
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.