[R] quotes
Jean-Pierre Gattuso
gattuso at obs-vlfr.fr
Fri Aug 12 23:08:47 CEST 2005
Hi:
I have been struggling with gsub to no avail and am seeking help from
the list.
I want to make a vector of the string "one, two, three" and have
tried to:
- replace each comma by ","
- add " at the beginning of the string
- add " at the end of the string
to issue the command:
col.names <- c("one", "two", "three")
for use in a data frame.
I have tried gsub to get that but am unable to get the double quote
and when I try to escape it (\"), I also get the backslash.
Thanks for your help,
jpg
More information about the R-help
mailing list