Message-ID: <42875D48.9040205@acelerate.com>
Date: 2005-05-15T14:31:36Z
From: Kjetil Halvorsen
Subject: Suppressing warning messages
In-Reply-To: <42875BE9.4030608@coubros.com>
Tolga Uzuner wrote:
> How do I suppress the following ?
>
> Warning messages:
> 1: the condition has length > 1 and only the first element will be used
> in: if (strike == forward) atmvol(forward, t, alpha, beta, rho, upsilon)
> else {
> 2: the condition has length > 1 and only the first element will be used
> in: if (x(z) == 0) 1 else z/x(z)
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
>
Maybe better to understand what generates the warning!
To assure you are uninformed, say
options(warn=-1)
Kjetil
--
Kjetil Halvorsen.
Peace is the most effective weapon of mass construction.
-- Mahdi Elmandjra
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.