Dear all,
I have the following matrix.
dat
A A A A A A A A A A
[1,] 0 0 0 0 0 0 0 0 0 0
[2,] 0 0 0 0 0 0 0 0 0 1
[3,] 0 0 0 0 0 0 0 0 0 2
How can I change it into:
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,] 0 0 0 0 0
, Si.
- Original Message -
From: Gundala Viswanath gunda...@gmail.com
To: r-h...@stat.math.ethz.ch
Sent: Tuesday, January 06, 2009 8:14 AM
Subject: [R] Changing Matrix Header
Dear all,
I have the following matrix.
dat
A A A A A A A A A A
[1,] 0 0 0 0 0 0 0 0 0 0
[2
Hello,
colnames( dat ) - NULL
will do the trick.
Carlos J. Gil Bellosta
http://www.datanalytics.com
On Tue, 2009-01-06 at 17:14 +0900, Gundala Viswanath wrote:
Dear all,
I have the following matrix.
dat
A A A A A A A A A A
[1,] 0 0 0 0 0 0 0 0 0 0
[2,] 0 0 0 0 0 0 0
Try this:
unname(dat)
On Tue, Jan 6, 2009 at 6:14 AM, Gundala Viswanath gunda...@gmail.comwrote:
Dear all,
I have the following matrix.
dat
A A A A A A A A A A
[1,] 0 0 0 0 0 0 0 0 0 0
[2,] 0 0 0 0 0 0 0 0 0 1
[3,] 0 0 0 0 0 0 0 0 0 2
How can I change it into:
4 matches
Mail list logo