I just discovered what seems to me to be a slight funny in respect
of formal argument names. If I define a function
foo - function(a,b){ ... whatever ...}
then ``inside'' foo() the exists() function will return TRUE
from ``exists(a) whether an object named ``a'' exists or not.
But
On 05/06/2008 8:23 PM, Rolf Turner wrote:
I just discovered what seems to me to be a slight funny in respect
of formal argument names. If I define a function
foo - function(a,b){ ... whatever ...}
then ``inside'' foo() the exists() function will return TRUE
from ``exists(a) whether an
Note the difference between
test - function(a) {
exists(a, mode = symbol)
}
test()
and
test2 - function(a) {
exists(a, mode = numeric) #say
}
test2()
and then note that the default mode argument to exists is any.
Rolf Turner wrote:
I just discovered what seems to me to be a slight
On 6/06/2008, at 12:57 PM, Erik Iverson wrote:
Note the difference between
test - function(a) {
exists(a, mode = symbol)
}
test()
and
test2 - function(a) {
exists(a, mode = numeric) #say
}
test2()
and then note that the default mode argument to exists is any.
Basically, I think,
On Jun 5, 2008, at 9:13 PM, Duncan Murdoch wrote:
On 05/06/2008 8:23 PM, Rolf Turner wrote:
I just discovered what seems to me to be a slight funny in respect
of formal argument names. If I define a function
foo - function(a,b){ ... whatever ...}
then ``inside'' foo() the exists()
forum
Subject: Re: [R] Existence of formal arguments.
On Jun 5, 2008, at 9:13 PM, Duncan Murdoch wrote:
On 05/06/2008 8:23 PM, Rolf Turner wrote:
I just discovered what seems to me to be a slight funny in respect
of formal argument names. If I define a function
foo - function(a,b
6 matches
Mail list logo