I'm trying to use an object value as new variable name in the ddply statement:
c<-"Sales_column"
a1<-ddply(df,.(c1),here(summarize),eval(parse(text=c)) = sum(c3))
It throws a syntax error :
Error: unexpected '=' in a1<-ddply(df,.(c1),here(summarize),eval(parse(text=c)) ="
What am I doing wrong? In this case I want to name the new column as "Sales_column" This code is portion of big code where c value will be changing.