Project

General

Profile

Bug #4267

RExpression converts nil input into "NA"

Added by Oliver Soong almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
actors
Target version:
Start date:
07/27/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4267

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.

History

#1 Updated by ben leinfelder almost 10 years ago

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.

#2 Updated by ben leinfelder almost 10 years ago

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.

#3 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 4267

Also available in: Atom PDF