The actual goal is much broader than this but right in the middle of it all I need to perform equations where the operator is one of the values in a data frame. The sample code replicates three columns in the formats they are in from the df being used. In this example df, I would want to perform the operations 20+5, 10-10 and 5*15.
# R code for sample df
a <- c(20,10,5)
b <- as.character(c("+","-","*"))
c <- c(5,10,15)
df <- data.frame(a,b,c)