相关疑难解决方法(0)

R - 更快的 hist(XX,plot=FALSE)$count 替代方案

我正在寻找 Rhist(x, breaks=XXX, plot=FALSE)$count函数的更快替代方案,因为我不需要生成任何其他输出(因为我想在调用中使用它sapply,需要调用此函数的 100 万次迭代),例如

x = runif(100000000, 2.5, 2.6)
bincounts = hist(x, breaks=seq(0,3,length.out=100), plot=FALSE)$count
Run Code Online (Sandbox Code Playgroud)

有什么想法吗?

r histogram binning

3
推荐指数
1
解决办法
943
查看次数

标签 统计

binning ×1

histogram ×1

r ×1