[R] Repeat if
Peter Dalgaard
P.Dalgaard at biostat.ku.dk
Thu Jun 28 15:14:06 CEST 2007
Birgit Lemcke wrote:
> Thanks that was really a quick answer.
>
> It works but I get this warning message anyway:
>
> 1: kein nicht-fehlendes Argument f�r min; gebe Inf zur�ck (None not-
> lacking argument for min; give Inf back)
> 2: kein nicht-fehlendes Argument f�r max; gebe -Inf zur�ck
>
> what does this mean?
>
>
Same as this
> max(c(NA, NA), na.rm=T)
[1] -Inf
Warning message:
no non-missing arguments to max; returning -Inf
which is related to the issues of empty sum(), prod(), any(), and all()
in that it allows a consistent concatenation rule:
max(c(x1,x2)) == max(max(x1), max(x2))
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list