Re: [Rd] call / do.call expression too big

From: Hadley Wickham <hadley_at_rice.edu>
Date: Sun, 05 Jun 2011 16:27:40 -0700

On Sun, Jun 5, 2011 at 4:25 PM, Jeroen Ooms <jeroen.ooms_at_stat.ucla.edu> wrote:
>> argn <- lapply(names(args), as.name)
>> names(argn) <- names(args)
>>
>> call <- as.call(c(list(as.name("lm")), argn))
>> eval(call, args)
>
> Great, almost! Is there any way I can explicitly specify the package of the
> function in this way? I tried replacing "lm" with "stats::lm" but that did
> not work.

Hmmm, not sure. Maybe something like: call("::", as.name("stats"), as.name("lm"))

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 05 Jun 2011 - 23:33:11 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 06 Jun 2011 - 07:10:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive