Displaying 2 results from an estimated 2 matches for "parilists".
Did you mean:
pairlists
2003 Feb 14
1
pairlists (was: data manipulation function descriptions)
> -----Original Message-----
> From: Luke Tierney [mailto:luke at stat.uiowa.edu]
> R does not provide a pairlist data structure. This creates a dilemma
> when translating some list-based xlispstat code, or, more
> importantly, when implementing an algorithm for which parilists are
> the natural data structure to use.
> ...
> Pairlists were and still are used internally for many things.
> ...
Wouldn't it, therefore, make sense to provide a 'pairlist' package which
exposes the internal pairlist structure and provides appropriate functions
(car, cd...
2011 Apr 14
1
Possible bug in 'relist()' and/or 'as.relistable()'
Dear list,
I think I just stumbled across a bug in either 'relist()' and/or
'as.relistable()'. It seems that 'pairlists' can only be un- and relisted as
long as they're not nested:
Good:
a <- as.relistable(as.pairlist(list(a=1, b=2)))
a <- unlist(a)
relist(a)# Works
Bad:
a <- as.relistable(as.pairlist(list(a=1, b=2, c=list(c.1=1, c.2=2))))
a <- unlist(a)