Re: [R] Fwd: string

2010-01-06 Thread Gabor Grothendieck
Some new syntax to handle this without escapes was on my wish list for R and keeps coming up from time to time. As mentioned it would also be useful for latex source, Windows path names, regular expressions and other situations such as this one which require characters that otherwise need to be esc

Re: [R] Fwd: string

2010-01-06 Thread robert-mcfadden
Thank you very much all of you. (I forgot about directly ' ', instead I used " " and got errors.) Best, Robert Dnia 6 stycznia 2010 12:22 robert-mcfad...@o2.pl napisaƂ(a): > I would like to assign a variable y the string: > How can I do it - is it possible? > > Best, > Robert > > > __

Re: [R] Fwd: string

2010-01-06 Thread Peter Dalgaard
robert-mcfad...@o2.pl wrote: > I would like to assign a variable y the string: > How can I do it - is it possible? Sure, but you need to escape the double quotes. The easiest way is actually to read it in, like (sorry about the line breakage...) > x <- readLines(n=1) > x [1] "" but you could

Re: [R] Fwd: string

2010-01-06 Thread milton ruser
Hi Robert, I use something like this with grass-R: myvar<-paste("",sep="\"") myvar May be it works for you. bests milton On Wed, Jan 6, 2010 at 6:22 AM, wrote: > I would like to assign a variable y the string: style="color: #FF; font-weight: bold; font-size: 14pt"> > How can I do it - i

[R] Fwd: string

2010-01-06 Thread robert-mcfadden
I would like to assign a variable y the string: How can I do it - is it possible? Best, Robert __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.