Bug #4267
closed
RExpression converts nil input into "NA"
Added by Oliver Soong over 15 years ago.
Updated over 15 years ago.
Description
If I pass a nil input token to RExpression, it produces an R variable that contains the string "NA" (2 letters) rather than the special NA or NULL values.
1.) If I use a String Constant actor with the value nil then I get NA as a string in the RExpression actor.
2.) If I use a Constant actor I don't even get any value in the RExpression actor.
I think the first case acts as it should (except that it changes the string value and that might not always be expected even for this very special Ptolemy string).
Case number 2 should give us a non-string NA in the RExpression actor as this bug expects. I'll make that happen.
nil tokens will now be (non-string) NA values in R.
Note: this is not the same as passing a StingToken("nil") to the RExpression.
Original Bugzilla ID was 4267
Also available in: Atom
PDF