StATS: String manipulations in R (May 10, 2005)
As part of my efforts to analyze microarray data, I am finding that I need to do simple string manipulations in R. Here is a list of functions that might help.
There are several functions that will convert one string into another string.
Several functions help find matches between two lists.
Several functions will use regular expressions.
A nice tutorial, by the way, on regular expressions is at:
There are several string manipulation functions found in the limma package, including
This page was written by Steve Simon while working at Children's Mercy Hospital. Although I do not hold the copyright for this material, I am reproducing it here as a service, as it is no longer available on the Children's Mercy Hospital website. Need more information? I have a page with general help resources. You can also browse for pages similar to this one at Category: Data management or Category: R software.