[R] how to flip row/ column of a matrix?

Duncan Murdoch murdoch.duncan at gmail.com
Wed Oct 3 21:21:57 CEST 2012

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

More information about the R-help mailing list