News for hackers. Stuff that matters.
Re:Introduction to R Programming by scottmmjackson on Friday December 08, 2017 @09:50AM (#15878943)
But if you know R, you can change the behavior of operators.

    > oldPlus <- `+`
    > `+` <- function(e1, e2) {
    +     if (is.character(e1) && is.character(e2))
    +       paste(e1,e2,sep="")
    +     else
    +       oldPlus(e1,e2)
    + }
    > "hello" + "world"
    [1] "helloworld"

There are no comments on this comment yet.