taverna-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alaninmcr <alanin...@googlemail.com>
Subject Re: Passing list of lists (or any higher dimension) to R in Taverna?
Date Mon, 21 Sep 2015 11:13:18 GMT
On 21/09/2015 09:17, N.M.Palmblad@lumc.nl wrote:
> Dear all,

Hello Magnus

> Perhaps this has been addressed elsewhere, but I could not find
> anything. What is the best, or recommended, way of passing a list of
> lists (or a list of lists of lists, etc.) to an Rshell in Taverna? The
> lists in the list are not of equal length, i.e. not a perfect 2D matrix,
> and some lists are empty. If possible, I would like to capture it as a
> list structure in R and go from there.
>
> The solution I came up with was to flatten the list, inserting markers
> for each sublist, then pass this single list to and parse it in R. This
> works, but is hardly elegant (some may say it is even extremely inelegant).

It may be possible to transfer it as an RExpression. I haven't seen any 
elegant way of handling lists of lists.

> All the best,
>
> Magnus Palmblad

Alan

Mime
View raw message