Project

General

Profile

Actions

Bug #4272

closed

RExpression cannot handle irregular Record tokens

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

Actions #1

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

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4272

Actions

Also available in: Atom PDF