[R] How to print a double quote

2007-02-22 Thread Bos, Roger
Can anyone tell me how to get R to include a double quote in the middle of a character string? For example, the following code is close: fnd-Open fnd 'test' cat(fnd) Open fnd 'test' But instead of Open fnd 'test' I need: Open fnd test. Difference seems minor, but I

Re: [R] How to print a double quote

2007-02-22 Thread Tony Plate
cat('Open fnd test\n') Open fnd test cat(Open fnd \test\\n) Open fnd test Bos, Roger wrote: Can anyone tell me how to get R to include a double quote in the middle of a character string? For example, the following code is close: fnd-Open fnd 'test' cat(fnd) Open fnd

Re: [R] How to print a double quote

2007-02-22 Thread Ranjan Maitra
try cat(Open fnd \test\) which is the same as for C. HTH. Ranjan On Thu, 22 Feb 2007 14:09:26 -0500 Bos, Roger [EMAIL PROTECTED] wrote: Can anyone tell me how to get R to include a double quote in the middle of a character string? For example, the following code is close:

Re: [R] How to print a double quote

2007-02-22 Thread Roger Bivand
On Thu, 22 Feb 2007, Bos, Roger wrote: Can anyone tell me how to get R to include a double quote in the middle of a character string? FAQ 7.37 Why does backslash behave strangely inside strings? For example, the following code is close: fnd-Open fnd 'test' cat(fnd) Open