[R] difficult to find index value
Rubel Das
rubeldas at yahoo.com
Wed Mar 30 07:35:30 CEST 2016
Dear R group memberI tried couple of hours to figure out the solution of following.match function behaves strange from value 0.7 and 1.7
> periodlimint<-seq(from=0.1, to=50, by=0.1)> indexAtest<-match( .6, periodlimint)> indexAtest[1] 6> periodlimint<-seq(from=0.1, to=50, by=0.1)> indexAtest<-match( .7, periodlimint)> indexAtest[1] NA> periodlimint<-seq(from=0.1, to=50, by=0.1)> indexAtest<-match( .8, periodlimint)> indexAtest[1] 8> periodlimint<-seq(from=0.1, to=50, by=0.1)> indexAtest<-match( 1.7, periodlimint)> indexAtest[1] NA
it will be helpful if you provide your comment
RegardsRubel
[[alternative HTML version deleted]]
More information about the R-help
mailing list