I would like to convert Mathematica code to R code. For example,
4/(-1 + δ) + (-1 + δ) Subscript[P, R]
The above is a copy version from Matematica. But I would like to type this one in R such as:
4/(-1 + Delta) + (-1 + Delta)*PR
Of course, the example is very simple to convert directly to R, but some complicated equations are not easy to covert it.
Could you please let me know how to automatically convert to R code?
SubscriptviaReplaceAllthen hit the resultant expression withToString[..., CForm]– b3m2a1 Jul 03 '18 at 20:11