Inspired by the use of +
operator by ggplot()
and gganimate()
, I was wondering how the +
operator can be used for other use especially using it for strings like python.
I know I can overwrite these infix operators using `+` <- function(...) something
but that completely overwrites the function, now I cannot use it for regular use like summing numbers.
Also I am more interested in knowing the internals i.e. how ggplot()
managed to use +
for their use without overwriting it. If anyone can explain it, I would be really thankful.