Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のRコードを持っています:
>a 1 2 3 4 5
b[i] = a[i] + b[i-1] となるような b を作成したい。
Rで上記のアクションを行う方法、助けが必要です。
b <- cumsum(b) + a
トリックを行います。