[R] Basic matrix manipulation problem

Rui Barradas ruipbarradas at sapo.pt
Thu Apr 26 01:33:23 CEST 2012


hello,


Hans Thompson wrote
> 
> Is there a function I can use to invert the final table rows and columns? 
> I'd like to plot the x and y so that I can place them with another point
> and get coefficient values.  So:
> 
>       AAB  BAB  CCD  DCD
>  x  1.75  2.25  3.25  3.75
>>y  6.25  6.75  7.25  7.75
> 
> to "A"
>             x      y
> AAB   
> BAB
> CCD
> DCD
> 
> then run the (x,y) values against either the origin or another point to
> get the coefficient that the line between the two points gives.
> 
> Thanks.
> 

Yes, the transpose function, t().

Hope this helps,

Rui Barradas


--
View this message in context: http://r.789695.n4.nabble.com/Basic-matrix-manipulation-problem-tp4584734p4588426.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list