[R] sibling list element reference during list definition
Paul Roebuck
roebuck at mdanderson.org
Sat Nov 12 08:03:15 CET 2005
Can the value of a list element be referenced from a
sibling list element during list creation without the use
of a temporary variable?
The following doesn't work but it's the general idea.
> list(value = 2, plusplus = $value+1)
such that the following would be the output from str()
List of 2
$ value : num 2
$ plusplus: num 3
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
More information about the R-help
mailing list