Skip to content

Can't figure out warning message

6 messages · Bert Gunter, Kjetil Halvorsen, Ravi Varadhan +1 more

#
Works fine for me with no warning messages. R for Windows 2.2.0. Try
upgrading (but I don't see why you get the warning either).

Try changing & to && though, as you don't need to vectorize the conjunction.

-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
 
"The business of the statistician is to catalyze the scientific learning
process."  - George E. P. Box
#
Ravi Varadhan wrote:
Try to double the &: && in place of &

Kjetil
#
Hi,

I apologize for my hasty posting.  The function works perfectly, after I
realized that I had a matrix named "T" sitting in my workspace, so when I
set my default option for "increase" to T, it created a problem.  Changing
my default to "TRUE" solved my problem.

Thanks,
Ravi.
#
My guess is that you have an object 'T' hanging around.
Like Berton, I get no error until I define:

T <- 0:1

and then run your test case, resulting in the warnings.

Peter
Ravi Varadhan wrote:

            

  
    
#
P Ehlers (that's me) wrote:

            
[snip]

As the posting guide says:

When responding to a very simple question, use the
following algorithm:
2. type 4*runif(1) at the R prompt, and wait this many hours

 > 4*runif(1)
[1] 3.141592

Obviously, I acted much too hastily. My apologies.

Peter