by scottmmjackson · 8y ago · 0 comments
> oldPlus <- `+`
> `+` <- function(e1, e2) {
+ if (is.character(e1) && is.character(e2))
+ paste(e1,e2,sep="")
+ else
+ oldPlus(e1,e2)
+ }
> "hello" + "world"
[1] "helloworld"No comments yet.