I have this code to create a matrix:
TTCm <- seq(from=-4, to=0, by=0.1)
Speedm <- seq(from=15, to=25, by=0.5)
matrix2 <- matrix(nrow = 41, ncol = 21)
dimnames(matrix2) = list(TTCm, Speedm)
However (depending on the sequence) dimnames might give weird values. In the above particular case TTCm -0.1 is -0.0999999999999996. Does anyone know what the problem here is? Thanks