Skip to content

Instantly share code, notes, and snippets.

@cdiener cdiener/overload.R
Last active Aug 23, 2019

What would you like to do?
R operator overloading
a = "bla"
b = "so on"
class(a) = append("my_class", class(a))
'+.my_class' = function(x,y) paste(x,y,sep=" and ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.