0

Consider the R following code:

x = seq(0,.6,by=0.2)
stopifnot( x == c(0, 0.2, 0.4, 0.6)) # does not stop

x = seq(0,.8,by=0.2)
stopifnot( x == c(0, 0.2, 0.4, 0.6, 0.8)) # stops

Why aren't x and c(...) equivalent in the second case?

Jim G.
  • 14,600
  • 19
  • 100
  • 158

0 Answers0