[R] dimnames(x) <- dn error

From: Ayesha Khan <ayesha.diamondash_at_gmail.com>
Date: Thu, 24 Jun 2010 20:13:49 -0500


Hi ,
I want to assign names to the rows in my matrix so that when I use the 'agnes' function from R cluster package , the dendogram that is produced represents the rows of the matrix. This way I would know what elements in the matrix are clustered together. But when I do the following, rownames(distF) <- paste("A",dim(distF)[1])

it gives the following error;
Error in dimnames(x) <- dn :
  length of 'dimnames' [1] not equal to array extent

What am I doing wrong? Any help is most appreciated

-- 
Ayesha Khan

MS Bioengineering
Dept. of Bioengineering
Rice University, TX

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 25 Jun 2010 - 01:29:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 Jun 2010 - 02:40:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive