我正在学习R,我在seq()上遇到了问题 我知道seq(0,3)是0 1 2 3. 但我不知道为什么seq(0:3)是1 2 3 4.
在RDocumentation(https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/seq)中,它说,
seq(from, to)
seq(from, to, by= )
seq(from, to, length.out= )
seq(along.with= )
seq(from)
seq(length.out= )
第一种形式从+/-1的…生成序列,To(等同于From:To).
那么,seq(0,3)和seq(0:3)不是真的相同吗?