我正在查看 boot
中的 cv.glm
源代码。有一行
s <- sample0(rep(1L:K, f), n)
我查找了sample0
,但它不存在。我相信它的真正含义是sample()
。为什么这里输入为sample0
?
最佳答案
看看:
boot:::sample0
#function (x, ...)
#x[sample.int(length(x), ...)]
#<bytecode: 0xa2a30e4>
#<environment: namespace:boot>
这是 boot
命名空间中的内部/非导出函数。
关于r - 为什么 `sample0` 里面是 `sample` 而不是 `cv.glm` ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41114825/