标签: r
考虑R以下代码:
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
为什么第二种情况下x和c(...)不等同?