View Single Post
Old 05-28-2014, 01:24 AM   #3
dpryan
Devon Ryan
 
Location: Freiburg, Germany

Join Date: Jul 2011
Posts: 3,480
Default

Another option is sprintf:

Code:
NewString <- sprintf("mygenes_%s", MyString)
Paste is easier for concatenating two strings like this, but should you want to merge multiple things (possibly with formatting), then you'll find sprintf very helpful.
dpryan is offline   Reply With Quote