Project

General

Profile

Actions

Bug #4267

closed

RExpression converts nil input into "NA"

Added by Oliver Soong over 14 years ago. Updated over 14 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.

Actions #1

Updated by ben leinfelder over 14 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.

Actions #2

Updated by ben leinfelder over 14 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.

Actions #3

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 4267

Actions

Also available in: Atom PDF