Skip to content

Delete all dimnames

4 messages · Serguei Kaniovski, PIKAL Petr, Joerg van den Hoff +1 more

#
Hi

try to read ?matrix help page. It leads you to dimnames and

dimmnames($amat)<-NULL

strips dimnames from matrix.

HTH
Petr
On 14 Dec 2006 at 14:29, Serguei Kaniovski wrote:
To:             	r-help at stat.math.ethz.ch
From:           	Serguei Kaniovski <Serguei.Kaniovski at wifo.ac.at>
Date sent:      	Thu, 14 Dec 2006 14:29:25 +0100
Subject:        	[R] Delete all dimnames
Petr Pikal
petr.pikal at precheza.cz
#
Serguei Kaniovski wrote:
dimnames(mat) <- NULL
#
On 12/14/06, Serguei Kaniovski <Serguei.Kaniovski at wifo.ac.at> wrote:
a b c
A 1 4 7
B 2 5 8
C 3 6 9
[,1] [,2] [,3]
[1,]    1    4    7
[2,]    2    5    8
[3,]    3    6    9

Sarah