[R] error message re: max(i), but code and output seen O.K.
Sundar Dorai-Raj
sdorairaj at gmail.com
Wed May 20 22:52:54 CEST 2009
This error is thrown if the argument to max is either NULL or length zero:
[~] Rscript -e "max(NULL)"
[1] -Inf
Warning message:
In max(NULL) : no non-missing arguments to max; returning -Inf
[~] Rscript -e "max(numeric(0))"
[1] -Inf
Warning message:
In max(numeric(0)) : no non-missing arguments to max; returning -Inf
HTH,
--sundar
On Wed, May 20, 2009 at 11:23 AM, Kirsten Miles <sirole.uva at gmail.com> wrote:
> I have a researcher who is consistently get the warning message:
>
> In max(i) : no non-missing arguments to max; returning -Inf
>
> Best as I can tell the code is working properly and the output is as
> expected. I would like some help in understanding why he is getting this
> error message and what its implications are. I have his code.
>
> Sincerely,
> Kirsten Miles
> Support Specialist
> Research Computing Lab
> Charles L. Brown Science and Engineering Library
>
> kdm3d at virginia.edu
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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