Your IF statement (if (x >= 3:6)) does not work as you probably expect
it since it does not test for the range. You probably want to use
"cut" to convert a value to a bucket in a range:
> x <- 3.5
> cut(x, breaks=seq(-3,5,.2), labels=FALSE)
[1] 33
> seq(-3,5,.2)
[1] -3.0 -2.8 -2.6 -2.4 -2.2 -2.0
I am trying to lookup a value in 1 of 10 loaded two column-data sets (Bins)
by displaying the value of the second column based on the value of the
first. For instance in
Bin1_Acres Bin1_parprobBin1_TAZ
[1,] 0.0004420.978 356
[2,] 0.0004530.954
2 matches
Mail list logo