[Rd] "+" operator on characters revisited
spencer.graves at structuremonitoring.com
Sun Jan 23 17:55:03 CET 2011
Consider the following from Python 2.6.5:
>>> 'abc'+ 2
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
TypeError: cannot concatenate 'str' and 'int' objects
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.
Spencer Graves, PE, PhD
President and Chief Operating Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
More information about the R-devel