Re: [R] cbind alternate

2012-01-06 Thread jim holtman
What is it you want to do with the data after you save it? Are you just going to read it back into R? If so, consider using save/load. On Fri, Jan 6, 2012 at 12:43 PM, Mary Kindall wrote: > I have two one dimensional list of elements and want to perform cbind and > then write into a file. The n

Re: [R] cbind alternate

2012-01-06 Thread Rui Barradas
Sorry Mary, My function would write the remainder twice, I had only tested it with multiples of the chunk size. (And without looking at the lenghty output correctly.) Now checked: write.big.matrix <- function(x, y, outfile, nmax=1000){ if(file.exists(outfile)) unlink(outfile) testf <- f

Re: [R] cbind alternate

2012-01-06 Thread Rui Barradas
Hello, I believe this function can handle a problem of that size, or bigger. It does NOT create the full matrix, just writes it to a file, a certain number of lines at a time. write.big.matrix <- function(x, y, outfile, nmax=1000){ if(file.exists(outfile)) unlink(outfile) testf

Re: [R] cbind alternate

2012-01-06 Thread Marc Schwartz
On Jan 6, 2012, at 12:39 PM, Marc Schwartz wrote: > On Jan 6, 2012, at 11:43 AM, Mary Kindall wrote: > >> I have two one dimensional list of elements and want to perform cbind and >> then write into a file. The number of entries are more than a million in >> both lists. R is taking a lot of time

Re: [R] cbind alternate

2012-01-06 Thread David Winsemius
On Jan 6, 2012, at 12:43 PM, Mary Kindall wrote: I have two one dimensional list of elements and want to perform cbind and then write into a file. The number of entries are more than a million in both lists. R is taking a lot of time performing this operation. Is there any alternate way to

Re: [R] cbind alternate

2012-01-06 Thread Marc Schwartz
On Jan 6, 2012, at 11:43 AM, Mary Kindall wrote: > I have two one dimensional list of elements and want to perform cbind and > then write into a file. The number of entries are more than a million in > both lists. R is taking a lot of time performing this operation. > > Is there any alternate way

Re: [R] cbind alternate

2012-01-06 Thread Bos, Roger
, 2012 12:43 PM To: r-help@r-project.org Subject: [R] cbind alternate I have two one dimensional list of elements and want to perform cbind and then write into a file. The number of entries are more than a million in both lists. R is taking a lot of time performing this operation. Is there any

[R] cbind alternate

2012-01-06 Thread Mary Kindall
I have two one dimensional list of elements and want to perform cbind and then write into a file. The number of entries are more than a million in both lists. R is taking a lot of time performing this operation. Is there any alternate way to perform cbind? x = table1[1:100,1] y = table2[1:100