minls<- -5.74
maxls<- 1.97
sseq<-seq(minls,maxls,0.5)
which(sseq==-0.24)
which(sseq==-0.24) gives output numeric(0)
To test sseq
[1] -5.74 -5.24 -4.74 -4.24 -3.74 -3.24 -2.74 -2.24 -1.74 -1.24 -0.74 -0.24 0.26 0.76 1.26 1.76
As you can see the 12th element is -0.24
Simply creating an array by c(...) does not give this error
Is there something incorrect I am doing or is this a problem with the which() function, is there any alternative to which()