[R] transposing a big data file

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed May 10 12:00:11 CEST 2006


yohannes alazar wrote:

> I HAVE A VERY BIG DATA OF 67 COLMS AND 25000 ROWS
> AND WOULD LIKE TO TRANSPOSE IT THE R HELP WAS NOT ENOUGH INFORMATION
> BECOUSE I AM NOT A PROGRAMMER AND FIRST TIME R USER.
> SO CAN YOU GIVE SOME HINTS OF CODING,

You might want to fix your Caps Lock key ...


> 
>    AA TT GG GG CC AA TT GG GG CC AA TT GG GG CC AA TT GG GG CC AA TT GG GG
> CC


Looks like 1x25


> TO
> 
>    AA AA AA AA AA TT TT TT TT TT GG GG GG GG GG GG GG GG GG GG CC CC CC CC
> CC

1x25 ...


Do you really want to transpose or to rearrange in some other manner?
Transposing is done by t() as help.search("transpose") turns out....

Uwe Ligges



> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list