Closed billdenney closed 1 year ago
> rxode2parse::rxode2parse('cp=linCmtA(rx__PTR__, t, 0, 1, 1, cl, v, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, ka, 0.0, 1+f_study1*(_cmp2(STUDYID, "STUDYID", 1, "Study 1")), 0.0, 0.0);')
rxode2 model syntax error:
================================================================================
rxode2 syntax error after 'Â:':
:001: cp=linCmtA(rx__PTR__, t, 0, 1, 1, cl, v, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, ka, 0.0, 1+f_study1*(_cmp2(STUDYID, "STUDYID", 1, "Study 1")), 0.0, 0.0);
^
================================================================================
Error: rxode2 syntax error after 'Â:':
:001: cp=linCmtA(rx__PTR__, t, 0, 1, 1, cl, v, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, ka, 0.0, 1+f_study1*(_cmp2(STUDYID, "STUDYID", 1, "Study 1")), 0.0, 0.0);
Normalized model is OK:
> message(rxode2parse('c <- f_study1*(STUDYID == "Study 1")')$model)
c=f_study1*(STUDYID=="Study 1");
In the example below, numeric comparisons work with the definition of
f()
, but text comparisons do not:Created on 2022-12-12 with reprex v2.0.2