[R] How to modify the dot-dot-dot argument using level names instead of position

Sébastien Bihorel pomchip at free.fr
Wed Aug 31 15:25:50 CEST 2011


Dear R-users,

In the R internals manual, it is said that one can extract the
elements of the dot-dot-dot argument using the special symbols ..1 or
..2. It seems to work just fine but I was wondering if there is a way
one can extract or modify the content of the dot-dot-dot argument
using a level name instead of its position?

For instance, assuming that list(...) returns:
$a
 [1]  1  2  3  4  5  6  7  8  9 10

$b
[1] "a" "b" "c" "d" "e" "f" "g" "h"

is there a way to modify level b without knowing that it is the second level?

Thank you

Sebastien



More information about the R-help mailing list