Hi,
Would the following help ?
from rpy2.rinterface import parse
from rpy2.robjects.vectors import DataFrame, IntVector
from rpy2.robjects.packages import importr
base = importr('base')
base.transform(DataFrame({'a': IntVector((1,2,3))}),
a = parse('a+1'))
I see.
In R's `transform()` there is the following line:
e - eval(substitute(list(...)), `_data`, parent.frame())
(`_data` being the data.frame)
This will work with R's `language` elements, but unfortunately not
`expression` ones (which what is coming out out of `parse()`).
I'd need (or