Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
ssage From: Uwe Ligges To: carol white Cc: r-h...@stat.math.ethz.ch Sent: Mon, January 10, 2011 7:14:00 PM Subject: Re: [R] Evaluation of variable assigned to a function name On 10.01.2011 18:24, carol white wrote: > If it doesn't make sense, how to invoke in the bar function,

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread Uwe Ligges
ry 10, 2011 6:10:58 PM Subject: Re: [R] Evaluation of variable assigned to a function name On 10.01.2011 16:41, carol white wrote: Note that I will call my function or user-defined function in bar function to have the value that my or user-defined function returns. So how can these function be in

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
: r-h...@stat.math.ethz.ch Sent: Mon, January 10, 2011 6:10:58 PM Subject: Re: [R] Evaluation of variable assigned to a function name On 10.01.2011 16:41, carol white wrote: > Note that I will call my function or user-defined function in bar function to > have the value that my or user-defin

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread Uwe Ligges
--- Original Message From: Uwe Ligges To: carol white Cc: r-h...@stat.math.ethz.ch Sent: Mon, January 10, 2011 3:04:19 PM Subject: Re: [R] Evaluation of variable assigned to a function name On 10.01.2011 14:56, carol white wrote: Let the following definitions: # my definition my.func<-

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
Subject: Re: [R] Evaluation of variable assigned to a function name On 10.01.2011 14:56, carol white wrote: > Let the following definitions: > > > # my definition > my.func<- function (x,y,z){ > > return (v) > } > > # user-defined definiti

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread Uwe Ligges
ges To: carol white Cc: r-h...@stat.math.ethz.ch Sent: Mon, January 10, 2011 2:11:48 PM Subject: Re: [R] Evaluation of variable assigned to a function name Wel, just let the user give the function in form of an argument, say "foo", and use your code so that bar<- function(x, ., foo){ i

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
carol white Cc: r-h...@stat.math.ethz.ch Sent: Mon, January 10, 2011 2:48:04 PM Subject: Re: [R] Evaluation of variable assigned to a function name On 10.01.2011 14:39, carol white wrote: > In fact, what the function is returning is the most important. So knowing that > the parameters and the number of param

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread Uwe Ligges
: Mon, January 10, 2011 2:11:48 PM Subject: Re: [R] Evaluation of variable assigned to a function name Wel, just let the user give the function in form of an argument, say "foo", and use your code so that bar<- function(x, ., foo){ if(missing(foo)) foo<- Na

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
:11:48 PM Subject: Re: [R] Evaluation of variable assigned to a function name Wel, just let the user give the function in form of an argument, say "foo", and use your code so that bar <- function(x, ., foo){ if(missing(foo)) foo <- Namespace::my.func . }

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread Uwe Ligges
Wel, just let the user give the function in form of an argument, say "foo", and use your code so that bar <- function(x, ., foo){ if(missing(foo)) foo <- Namespace::my.func . } but perhaps I misunderstood your question. Uwe Ligges On 10.01.2011 13:47, carol white wrote: Hi,

[R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
Hi, I have defined a function (my.func) which is used as parameter (f) of another function. As I want to give the user the possibility to define his own function instead of my.func, how can I find out if in other functions, the parameter f has the my.func value (if the user has defined a new fun