[R] quotes

From: Jean-Pierre Gattuso <gattuso_at_obs-vlfr.fr>
Date: Sat 13 Aug 2005 - 07:08:47 EST


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:

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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Aug 13 07:16:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:47 EST