Monday 27 July 2015

R: String Manipulation

R provides number of useful functions to work with strings. Subsequent posts explain some of the useful functions provided by R.

grep() : Search for a pattern in a character vector
nchar() : Get the length of string
paste() : Concatenate strings
sprintf() : Assemble string in formatted manner
grep() : Search for a string
regexpr(): Search for a pattern in given text
gregexpr() : Search all occurrences of given pattern



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment