Skip to content

transpose a matrix?

4 messages · t c, Uwe Ligges, David Ruau

#
t c wrote:

            
I do not get your point, since subject line and body of your message are 
telling different stories. Do you want to have a list of vectors?

You certainly do not want to transpose a data frame with both factors 
(or character) and numeric values in it.....

Uwe Ligges
#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Not sure what you want from the explanation you gave but to transpose 
try that:
x <- as.matrix(x)
x.trans <- t(x)

One method that's may also of use is
help.search("transpose")

David
On Dec 20, 2005, at 17:26, t c wrote:

            
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDqUsI7EoGVUIQyhERArLdAKCX7FniqohYs646riJopkqs6/rboQCcDBUK
4n9JS+hzHOwLZLc6HKQWJcM=
=U6e6
-----END PGP SIGNATURE-----
#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Not sure what you want from the explanation you gave but to transpose 
try that:
x <- as.matrix(x)
x.trans <- t(x)

One method that's may also of use is
help.search("transpose")

David
On Dec 20, 2005, at 17:26, t c wrote:

            
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDqUtZ7EoGVUIQyhERAohmAJ9ASkIETkTvBP7nT8Tr739H7gwWjwCgiBji
LpWmylZvZ6al91b02rrAtGg=
=a98J
-----END PGP SIGNATURE-----