Project

General

Profile

Bug #4272

RExpression cannot handle irregular Record tokens

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

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

0%

Estimated time:
Bugzilla-Id:
4272

Description

If I pass a record along the lines of {a = 1, b = {2, 3}} into an RExpression, it will choke since it can't form a data.frame out of this. A fallback would be to create list(a = 1, b = c(2, 3)). From what I understand about Records, the whole Record = data.frame thing isn't entirely appropriate in the first place.

History

#1 Updated by ben leinfelder almost 10 years ago

We can now handle variable length record tokens.

For the RecordToken: {a=1, b={2,3}}

We end up with this in the RExpression actor:

`myInput` <- local({

+ `a` <- c(1)
+ `b` <- c(2, 3)
+ list(`a`,`b`)
+ })

myInput

1
[1] 1

2
[1] 2 3

#2 Updated by Redmine Admin about 6 years ago

Original Bugzilla ID was 4272

Also available in: Atom PDF