Re: [Rd] Problem with args

2012-04-21 Thread Simon Urbanek
On Apr 21, 2012, at 1:45 PM, Gabor Grothendieck wrote: > On Sat, Apr 21, 2012 at 1:38 PM, Simon Urbanek > wrote: >> >> On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: >> >>> args ought to check that its argument is a function: >>> max <- 3 args(max) >>> NULL >>> >>> e.g. >>>

Re: [Rd] Problem with args

2012-04-21 Thread Gabor Grothendieck
On Sat, Apr 21, 2012 at 2:10 PM, Simon Urbanek wrote: > > On Apr 21, 2012, at 1:45 PM, Gabor Grothendieck wrote: > >> On Sat, Apr 21, 2012 at 1:38 PM, Simon Urbanek >> wrote: >>> >>> On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: >>> args ought to check that its argument is a functio

Re: [Rd] Problem with args

2012-04-21 Thread Gabor Grothendieck
On Sat, Apr 21, 2012 at 1:38 PM, Simon Urbanek wrote: > > On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: > >> args ought to check that its argument is a function: >> >>> max <- 3 >>> args(max) >> NULL >> >> e.g. >> >>> args <- function(name) { >> +     name <- match.fun(name) >> +     base

Re: [Rd] Problem with args

2012-04-21 Thread Simon Urbanek
On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: > args ought to check that its argument is a function: > >> max <- 3 >> args(max) > NULL > > e.g. > >> args <- function(name) { > + name <- match.fun(name) > + base::args(name) > + } >> args(max) > function (..., na.rm = FALSE) > N

[Rd] Problem with args

2012-04-21 Thread Gabor Grothendieck
args ought to check that its argument is a function: > max <- 3 > args(max) NULL e.g. > args <- function(name) { + name <- match.fun(name) + base::args(name) + } > args(max) function (..., na.rm = FALSE) NULL -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-87