[R] writing function ( 'plot' and 'if') problem

David Winsemius dwinsemius at comcast.net
Wed Apr 14 06:06:53 CEST 2010


On Apr 13, 2010, at 10:58 PM, RICHARD M. HEIBERGER wrote:

>
> The spurious condition (ds==2) is actually interpreted as the action  
> taken by the else statement.
>
> Then the braced plot statement is seen as the next statement after  
> the conclusion of the
>    if () {} else ()
> statement.
>

I did take out the condition, and it still failed so I then took out  
the <cr>'s.

-- 
David.



More information about the R-help mailing list