2013-07-19 19 views

回答

6
x <- c(9, 30, 46, 52, 76) 
x - (seq_along(x)-1) 
[1] 9 29 44 49 72 
4
answer <- positions - 0:4 

0:4是矢量c(0,1,2,3,4)

相關問題