Skip to content
Prev 332944 / 398506 Next

Custom Numeric type in R

Hello,

Try the following.

 > class(NA)
[1] "logical"
 > class(NaN)
[1] "numeric"
 > class(Inf)
[1] "numeric"


So my guess is that what the op wants is not possible. And that to 
declare a new class shouldn't solve the problem.

Rui Barradas

Em 10-11-2013 21:07, Bert Gunter escreveu: