From spencer.graves at structuremonitoring.com  Sun Jan 23 17:55:03 2011
From: spencer.graves at structuremonitoring.com (Spencer Graves)
Date: Sun, 23 Jan 2011 08:55:03 -0800
Subject: [Rd] "+" operator on characters revisited
In-Reply-To: <AANLkTinHarTQc60hN3yX5PJMy-d6TZneTYg7019YSRU=@mail.gmail.com>
References: <878vycd7ld.fsf@gmail.com>
	<AANLkTinHarTQc60hN3yX5PJMy-d6TZneTYg7019YSRU=@mail.gmail.com>
Message-ID: <4D3C5D67.9010101@structuremonitoring.com>

Consider the following from Python 2.6.5:


 >>> 'abc'+ 2

Traceback (most recent call last):
   File "<pyshell#0>", line 1, in <module>
     'abc'+ 2
TypeError: cannot concatenate 'str' and 'int' objects
 >>> 'abc'+'2'
'abc2'
 >>>


       Spencer


On 1/23/2011 8:09 AM, Hadley Wickham wrote:
>> Yet another useful suggestion of introducing cat0() and paste0(), for
>> the common use of cat and paste with sep="" was not absorbed by the
>> core R either.
> stringr has str_c which is a replacement for paste with sep = "" and
> automatic removal of length 0 inputs.
>
> Hadley
>
>


-- 
Spencer Graves, PE, PhD
President and Chief Operating Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San Jos?, CA 95126
ph:  408-655-4567



[Rd] "+" operator on characters revisited
Spencer Graves