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)

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to