In the examples section of ?cutree (stats package):
hc <- hclust(dist(USArrests))
cutree(hc, k=1:5)#k = 1 is trivial
cutree(hc, h=250)
## Compare the 2 and 3 grouping: <<= SHOULD READ AS: "2 and 4 grouping"
g24 <- cutree(hc, k = c(2,4))
table(g24[,"2"], g24[,"4"])
__
All is in the title. My config is:
Version:
platform = i386-apple-darwin8.10.1
arch = i386
os = darwin8.10.1
system = i386, darwin8.10.1
status =
major = 2
minor = 7.0
year = 2008
month = 04
day = 22
svn rev = 45424
language = R
version.string = R version 2.7.0 (2008-04-22
In ?options, one reads warnings.length, but it should be warning.length.
Version:
platform = i386-apple-darwin8.10.1
arch = i386
os = darwin8.10.1
system = i386, darwin8.10.1
status =
major = 2
minor = 6.1
year = 2007
month = 11
day = 26
svn rev = 43537
language = R
versi
Full_Name: Philippe Grosjean
Version: 2.6.1
OS: MacOS X; Windows XP
Submission from: (NULL) (81.243.237.235)
Last output from capture.output() is truncated if it does not end with a
carriage return:
> capture.output(cat("text\n")) # Fine
[1] "text"
> capture.output(cat("text"))# Missing out