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.
repステートメントで階乗関数を取得したい。
やってみます!! でも失敗!!
fact <- function(n){ for (i in 0:n){ while(i<n){ rep{n*fact(n-1) if(i ==n) break} } }
ご回答ありがとうございます。:)