An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121003/bf7a0e25/attachment.pl>
how to flip row/ column of a matrix?
3 messages · Jason Love, Sarah Goslee, Duncan Murdoch
Do you mean all the rows and columns, or just a row and column as you said? Your reference to matlab makes me think the former, in which case all you need is ?t - the transpose function. Sarah
On Wed, Oct 3, 2012 at 3:14 PM, Jason Love <jason.love1492 at gmail.com> wrote:
Hi all, Sorry about posting such a basic question, but I can't seem to find out a way of flipping a column and row of a matrix. In matlab, this can be easily done by putting a prime next to a variable name. (e.g., a -> a') If anyone knows, please help. -Jason
Sarah Goslee http://www.functionaldiversity.org
On 03/10/2012 3:14 PM, Jason Love wrote:
Hi all, Sorry about posting such a basic question, but I can't seem to find out a way of flipping a column and row of a matrix. In matlab, this can be easily done by putting a prime next to a variable name. (e.g., a -> a') If anyone knows, please help.
t(a) is the transpose of a. Duncan Murdoch