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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to