[R] Flip rows and columns of a table?

BXC (Bendix Carstensen) bxc at steno.dk
Tue Apr 26 11:26:33 CEST 2005


t( my.table )

----------------------
Bendix Carstensen
Senior Statistician
Steno Diabetes Center
Niels Steensens Vej 2
DK-2820 Gentofte
Denmark
tel: +45 44 43 87 38
mob: +45 30 75 87 38
fax: +45 44 43 07 06
bxc at steno.dk
www.biostat.ku.dk/~bxc
----------------------



> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Dan Bolser
> Sent: Tuesday, April 26, 2005 11:18 AM
> To: R mailing list
> Subject: [R] Flip rows and columns of a table?
> 
> 
> 
> Any simple way to take a (2D) table and 'rotate' it so all 
> the rows become columns and the columns rows?
> 
> I'll wager there is a simple way ;) - but I can't find it :(
> 
> ______________________________________________
> 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