[Rd] get ...

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sat Jun 28 22:39:16 CEST 2008


Gabor Grothendieck wrote:
> Suppose we do this:
>
>   
>> f <- function(...) environment()
>> e <- f(a = 1, b = 2)
>> ls(e, all = TRUE)
>>     
> [1] "..."
>   
>> e$...
>>     
> <...>
>   
>> class(e$...)
>>     
> [1] "..."
>
> Is there any way of getting a and b given e without
> modifying f?
>   
 > evalq(list(...),e)
$a
[1] 1

$b
[1] 2

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-devel mailing list