> 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 <atulsainim...@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@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.

______________________________________________
R-help@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.

Reply via email to