I used max(d[,2:3]) to extract the largest number of two columns of a data frame, but I got really weird value:
> head(D)
          CD41 label clusterID
1 0.0011454440     7         5
2 1.0996334553    10         4
3 0.0011956851     9        12
4 0.0992929861    13        12
5 0.0008555306     7         5
6 0.0001552506     7         5
> d=head(D)
> max(d[,2:3])
[1] 13
> 1:max(d[,2:3])
 [1]  1  2  3  4  5  6  7  8  9 10 11 12
> max(d[,2:3])
[1] 13
> max(d[,2:3])==13
[1] FALSE
> max(d[,2:3])==12
[1] FALSE
> is.numeric(max(d[,2:3]))
[1] TRUE
How could a numeric "13" not equal to 13? I'm really puzzled. Thanks in advance for any help.
 
     
    