[R] cbind alternate

jim holtman jholtman at gmail.com
Sat Jan 7 00:35:55 CET 2012


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 <mary.kindall at gmail.com> 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 perform cbind?
>
> x = table1[1:1000000,1]
> y = table2[1:1000000,5]
>
> z = cbind(x,y)   //hanging the machine
>
> write.table(z,'out.txt)
>
>
>
> --
> -------------
> Mary Kindall
> Yorktown Heights, NY
> USA
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.



More information about the R-help mailing list