[R] difference between ' and "

Karl Ove Hufthammer karl at huftis.org
Wed Jan 27 16:08:46 CET 2010


On Wed, 27 Jan 2010 14:15:28 +0100 Ivan Calandra <ivan.calandra at uni-
hamburg.de> wrote:
>  From my experience (which is limited), it seems to me that ' 
> (apostrophe) and " (quotation marks) are the same in R: they are both 
> used for strings. The only difference would be taste.
> But I've recently read about the difference between = and <- and I 
> thought that there might be a difference here too in some cases.

Well, you can use ' but not " inside "" (without escaping).
Also, you can use " but not ' inside '' (without escaping).

-- 
Karl Ove Hufthammer



More information about the R-help mailing list