+ operator for strings, why not?

I can't understand why R refues to use the "+" operator for characters, like python does.

"+" is not defined for characters, so why not to implement it? It's annoying to use the paste function every time I have to print/cat a message, set colnames or more...

Plz r do like python

"+" <- function(x, y){
if( is.character(x) & is.character(y) ) paste(x,y, sep = "")
else base::"+"(x,y)
}

why not?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.