Skip to content
Prev 58370 / 398502 Next

integer

G??ran Brostr??m wrote:

            
[The story was completely different from the stuff I guessed, so all 
further communication related to this thread is "academic".]

G??ran,

yes, as expected.
Yes.

My guees was that the asker tried to identify integers such as 2, 3 in 
contrast to 2.1, 3.1, ...and you won't know it by looking at R's storage 
mode (my guess was that the asker was not interested in the storage 
mode, but in the nature of the numbers!).
Note that is.integer(1) is FALSE!!!

The given usage of all.equal() helps to identify 1 as an integer, but 
not 1.1...

Uwe