I really plyr's quoted
class; I'd like to be able to able to combine two quoted objects and get a new one. For example, how do I define mult(a,b)
such that
q1 <- as.quoted("x+y")
q2 <- as.quoted("y+z")
mult <- function(a, b) {?????}
## mult(q1, q2) returns as.quoted("(x+y)*(y+z)")