Created
March 6, 2013 21:12
-
-
Save jeffwong/5103140 to your computer and use it in GitHub Desktop.
Delete trailing whitespace from a string in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strstrip = function(x) gsub("^\\s+|\\s+$", "", x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment