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.
lapply()リストの次の要素をステップ実行する前に、ユーザーからの「入力」を強制的に待つ方法で使用する方法はありますか? もしそうなら、簡単な例を挙げていただけますか?
lapply()
次に例を示します。
es <- list(1, 2, 3) lapply(es, function(e) { cat("Press enter:") readLines(n = 1) print(e) })