Dear all,

 I have a question on the shardsplot package:klaR(see the below Example).

Plese tell me the meanings of " logstand <- t((t(logcount) / sdlogcount) *
c(1,2,6,5,5,3))", much more.

Why does this example use "c(1,2,6,5,5,3)" ?

 Examples:



     # Compute clusters and an Eight Directions Arranged Map for the

     # country data. Plotting the result.

     data(countries)

     logcount <- log(countries[,2:7])

     sdlogcount <- apply(logcount, 2, sd)

     logstand <- t((t(logcount) / sdlogcount) * c(1,2,6,5,5,3))

     cclasses <- cutree(hclust(dist(logstand)), k = 6)

     countryEDAM <- EDAM(logstand, classes = cclasses, sa = FALSE,

         iter.max = 10, random = FALSE)

     plot(countryEDAM, vertices = FALSE, label = TRUE, stck = FALSE)




Sincerely yours,
Mikio

        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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.

Reply via email to