我想从一个字段中使用的信息,并将其纳入A R的功能,例如:[R转换文本字段的功能
data #name of the data.frame with only one raw
"(if(nclusters>0){OptmizationInputs[3,3]*beta[1]}else{0})" # this is the raw
如果我想使用的功能,我怎么能做到这一点这里面的信息?
Another example:
A=c('x^2')
B=function (x) A
B(2)
"x^2" # this is the return. I would like to have the return something like 2^2=4.