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,
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
: 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
--- 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<-
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
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
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
: 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
: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
.
}
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,
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
11 matches
Mail list logo