yihui 楼主这是在赤果果挑战老司机的极限。当 length(data) 小于 1 的时候 seq() 就会报错,例如: > seq(1, 0, by = 2) Error in seq.default(1, 0, by = 2) : wrong sign in 'by' argument