[R] "In sqrt(VS) : NaNs produced"

Richard O'Keefe r@oknz @end|ng |rom gm@||@com
Wed Jan 22 11:15:08 CET 2020


> sqrt(c(1,-2,3))
[1] 1.000000      NaN 1.732051
Warning message:
In sqrt(c(1, -2, 3)) : NaNs produced
You might want to put
if (any(VS < 0)) stop("some VS are negative")
just after the definition of VS.

On Tue, 21 Jan 2020 at 02:01, Atul Saini <atulsainimail using gmail.com> wrote:
>
> Hello R,
>              I am attaching the script and data please help me to solve the
> problem of
>
> "In sqrt(VS) : NaNs produced"  with the p value of dumy$Mar
>
> Regards,
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list