> 1:4 [1] 1 2 3 4 > cumsum(1:4) [1] 1 3 6 10
函数介绍:Returns a vector whose elements are the cumulative sums。
cumsum() 函数:Cumulative Sums 累积和。取第一个单词的前三个字母,取第二个单词的前三个字母。