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 <[email protected]> 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 > > [email protected] > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] 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. > ______________________________________________ [email protected] 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.

