Displaying 1 result from an estimated 1 matches for "nbindiv".
Did you mean:
dbindir
2012 Feb 23
1
segfault when using data.table package in conjunction with foreach
...ENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.7.10 doMC_1.2.2 multicore_0.1-5
foreach_1.3.2 codetools_0.2-8 iterators_1.0.3
MY CODE:
computeAllPairSums <- function(filename, nbindiv,nrows.to.read)
{
con <- file(filename, open="r")
on.exit(close(con))
ans <- matrix(numeric(nbindiv * nbindiv), nrow=nbindiv)
chunk <- 0L
while (TRUE) {
#read.table faster than scan
df0 <- read.table(con,col.names=c("ID1", "ID2",...