[R] rownames cannot allocate vector of size

2010-02-22 Thread Larson, TR
Hi, On R 2.10.1 for Windows, when I do the following to duplicate the structure of a large numeric matrix called matrix1: matrix2 - matrix(0,nrow=nrow(matrix1),ncol=ncol(matrix1)) and then rownames(matrix2) - rownames(matrix1) I get a cannot allocate vector of size xxMb error but if I

[R] counting repeating sequence lengths in a vector

2010-02-22 Thread Larson, TR
Hello, I have a very long (~50,000) sequence of repeating numbers. The first 100 are: [1] 0 0 0 0 0 0 0 0 0 0 0 429 [13] 429 429 429 429 429 429 429 858 858 858 858 858 [25] 858 1287 1287 1287 1287 1287 1716

[R] extract clusters from a hclusrt object without cutree

2009-09-30 Thread Larson, TR
Hello, I am generating an hclust() object and want to extract a subset of clusters WITHOUT using cutree(). I see this somehow involves using the $merge matrix to associate $labels into their appropriate clusters where clusters are split below a given $height threshold. Can anyone suggest