当我[[.data.frame
在我的电脑上查看内容时,我得到的是:
> get("[[.data.frame")
function (x, ..., exact = TRUE)
{
na <- nargs() - (!missing(exact))
if (!all(names(sys.call()) %in% c("", "exact")))
warning("named arguments other than 'exact' are discouraged")
if (na < 3L)
(function(x, i, exact) if (is.matrix(i))
as.matrix(x)[[i]]
else .subset2(x, i, exact = exact))(x, ..., exact = exact)
else {
col <- .subset2(x, ..2, exact = exact)
i <- if (is.character(..1))
pmatch(..1, row.names(x), duplicates.ok = TRUE)
else ..1
.subset2(col, i, exact = exact)
}
}
<environment: namespace:base>
我已经习惯了...
,但这是我第一次看到..1
和..2
。在 R 帮助和 Google 中的快速搜索大多返回垃圾,因为这些点通常被解释为占位符,所以我希望这里有人能给我指点?还是我错过了一些非常明显的东西?这些来自哪里,我该如何使用它们?