R`scan`功能的哪一部分允许数据输入?

时间:2012-08-14 21:20:46

标签: r function

我输入> scan来查看scan()函数的正文,但我无法弄清楚它的哪一部分可能会导致用户输入数据的可能性。

(如果我们通过x=scan()调用函数,我们可以创建x,结束交互时在空行时按Enter键。

1 个答案:

答案 0 :(得分:2)

这一点:

.Internal(scan(file, what, nmax, sep, dec, quote, skip, nlines, 
        na.strings, flush, fill, strip.white, quiet, blank.lines.skip, 
        multi.line, comment.char, allowEscapes, encoding))

这是函数返回之前的最后一段代码。这是对.Internal的调用,这是一些执行扫描的C代码。

来自?.Internal

.Internal performs a call to an internal code which is built in 
to the R interpreter.
相关问题