See below
Le 12/3/2010 06:54, Berwin A Turlach a écrit :
On Thu, 2 Dec 2010 23:34:02 -0500
David Winsemiusdwinsem...@comcast.net wrote:
[...] Erik is telling you that your use of ncol-4 got evaluated to
4 and that the name of the resulting object was ignored, howevert the
value of the
It's only obvious when someone points it out :)
fubar is not created because, in the test x 3 returned FALSE, which
means the cat function doesn't get used, which means the y arg (fubar
- 6) is never required and therefore not evaluated.
Evil isn't it ?
Michael
On 3 December 2010 20:18, Ivan
Arf, yes it makes sense now!
So the idea here is: never use - in function argument...
Thanks for the explanation!
Regards,
Ivan
Le 12/3/2010 10:48, Michael Bedward a écrit :
It's only obvious when someone points it out :)
fubar is not created because, in the test x 3 returned FALSE, which
G'day Ivan,
On Fri, 03 Dec 2010 10:54:58 +0100
Ivan Calandra ivan.calan...@uni-hamburg.de wrote:
Arf, yes it makes sense now!
Well, my original post said: R has lazy evaluation and the
assignment takes place when the function evaluates the argument :)
So the idea here is: never use - in
Le 12/3/2010 11:35, Berwin A Turlach a écrit :
G'day Ivan,
On Fri, 03 Dec 2010 10:54:58 +0100
Ivan Calandraivan.calan...@uni-hamburg.de wrote:
Arf, yes it makes sense now!
Well, my original post said: R has lazy evaluation and the
assignment takes place when the function evaluates the
On 12/03/2010 06:54 AM, Berwin A Turlach wrote:
On Thu, 2 Dec 2010 23:34:02 -0500
David Winsemiusdwinsem...@comcast.net wrote:
[...] Erik is telling you that your use of ncol-4 got evaluated to
4 and that the name of the resulting object was ignored, howevert the
value of the operation was
Hi there,
In function, it's usually using ``='' to assign default value for
function argument. For newbie, it's possible to using ``- '' to assign
value for function argument. Although it's not a correct way, R don't
give any warning message.
matrix(1:20, ncol - 4)
[,1] [,2] [,3] [,4]
On 12/02/2010 09:35 PM, Jinsong Zhao wrote:
Hi there,
In function, it's usually using ``='' to assign default value for function
argument. For newbie, it's possible to using ``- '' to assign value for
function argument. Although it's not a correct way, R don't give any warning
message.
On Dec 2, 2010, at 10:47 PM, Erik Iverson wrote:
On 12/02/2010 09:35 PM, Jinsong Zhao wrote:
Hi there,
In function, it's usually using ``='' to assign default value for
function
argument. For newbie, it's possible to using ``- '' to assign
value for
function argument. Although it's not a
On Thu, 2 Dec 2010 23:34:02 -0500
David Winsemius dwinsem...@comcast.net wrote:
[...] Erik is telling you that your use of ncol-4 got evaluated to
4 and that the name of the resulting object was ignored, howevert the
value of the operation was passed on to matrix which used positional
10 matches
Mail list logo