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.
Matlab では、次のようにデータ間の間隔を指定できます。
for i = 1:3:n ... end
R の for ループ構造が次のようになっているとします。
for (i in 1:n) { ... }
Rでデータ間隔を指定できますか?
R では、最初にシーケンスを作成する必要があります。
for (i in seq(1,n,3)) { ...