powered by
This removes spaces from a before and after words in a character vector. It was adapted from a similar function in adegenet.
remove.spaces(charvec)
is a vector of characters containing spaces to be removed.
A vector of characters without spaces
http://adegenet.r-forge.r-project.org/
# NOT RUN { charvec<-c("this ", " is"," a"," test") remove.spaces(charvec) # }
Run the code above in your browser using DataLab