Skip to content
Prev 75471 / 398502 Next

quotes

col.names <- strsplit("one, two, three", ", ")[[1]]

is an easy way to do this.  But you can do

paste('"', gsub(', ',  '","', "one, two, three"), '"', sep="")

R accepts either single or double quotes and it can make life easier to 
use both.
On Fri, 12 Aug 2005, Jean-Pierre Gattuso wrote: