Hi,

I found in a bit of code the following test for infinity:

  if (x == Inf) ...

Is that valid, or should it be (as I always thought):

  if (is.infinite(x)) ...?

Does it depend on whether 'x' is float or integer?

My question is related to testing for missing values where is.na(x) is required.

/Henrik

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to