I have 30 files (imported to R as dataframe) and each of them looks like this:
     X..Chr  SNP1  SNP2 Dist Sign  r2
1       1     1     2  1208    - 0.099
2       1     1     3  3440    + 0.414
3       1     1     4 11078    + 0.125
4       1     1     5 13934    + 0.201
5       1     1     6 20957    - 0.008
6       1     1     7 21046    - 0.000
I read each of them in this way:
chr1 <- read.table("/home/Paulal/ld_syn_c01.txt", stringsAsFactors = FALSE, header = TRUE, nrows = 5)
classes <- sapply(chr1rows, class)
chr1 <- read.table("/home/Paulal/output_ld/ld_syn_c01.txt", header = TRUE, colClasses = classes)
I am using R on Linux:
R version 3.0.1 (2013-05-16) -- "Good Sport"
Platform: x86_64-redhat-linux-gnu (64-bit)
When I sum up the dimensions of all of them, it would give me a file with 4.5 x e11. However R is not "rbind"ing them. I get the error:
Error in anyDuplicated.default(rlabs) :
  long vectors not supported yet: unique.c:550
In addition: Warning messages:
1: In Make.row.names(nmi, ri, ni, nrow) : NAs introduced by coercion
2: In nrow + ni : NAs produced by integer overflow.
Any suggestions in how I can create this file? Thank you very much. Cheers, Paula.
 
    