match.call() will return the call. merge.zoo in the zoo package
uses it if you need an example. as.list(match.call()) will return
a list.
list(...) will return the ... arguments as a list.
$.proto in the proto package allows one to write p$f where p
is a proto object and f is a function and p$
Thanks for your replies! The will require some study on my part, which is
good: a lot to learn.
KJ
[[alternative HTML version deleted]]
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Wacek Kusnierczyk wrote:
> Wacek Kusnierczyk wrote:
>
>> Kynn Jones wrote:
>>
>>
>>
>>> In general, I'm looking for all the information I can find on the subject of
>>> dynamic function definition (i.e. using code to automate the definition of
>>> functions at runtime). I'm most interes
Wacek Kusnierczyk wrote:
> Kynn Jones wrote:
>
>
>> In general, I'm looking for all the information I can find on the subject of
>> dynamic function definition (i.e. using code to automate the definition of
>> functions at runtime). I'm most interested in introspection facilities and
>> dynamic
Kynn Jones wrote:
> Hi. I'm pretty new to R, but I've been programming in other languages for
> some time. I have a couple of questions regarding programming with function
> objects.
> 1. Is there a way for a function to refer generically to all its actual
> arguments as a list? I'm thinking of
> 1. Is there a way for a function to refer generically to all its actual
> arguments as a list? I'm thinking of something like the @_ array in Perl or
> the arguments variable in JavaScript. (By "actual" I mean the ones that
> were actually passed, as opposed to its formal arguments, as returned
On Tue, May 19, 2009 at 4:22 PM, Kynn Jones wrote:
> 2. I have a package in which most of the functions have the form:
>
> the.function <- function(some, list, of, params) {
> return( some.other.function(the.list.of.params.to.this.function));
> }
>
> Is there a way that I can use a loop to def
Hi. I'm pretty new to R, but I've been programming in other languages for
some time. I have a couple of questions regarding programming with function
objects.
1. Is there a way for a function to refer generically to all its actual
arguments as a list? I'm thinking of something like the @_ array