Description Usage Arguments Value References Examples
This removes spaces from a before and after words in a character vector. It was adapted from a similar function in adegenet.
1 | remove.spaces(charvec)
|
charvec |
is a vector of characters containing spaces to be removed. |
charvec |
A vector of characters without spaces |
http://adegenet.r-forge.r-project.org/
1 2 | charvec<-c("this ", " is"," a"," test")
remove.spaces(charvec)
|
[1] "this" "is" "a" "test"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.