[R] alpha shape function

2009-02-18 Thread Pedroso MOACIR
computes the alpha shape. Does anyone know if there is such a function in R? Theank you very much. Moacir Pedroso Embrapa - Brazil __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] subscripting a one column matrix drops dimension

2008-10-21 Thread moacir
Thank you all. It's not easy to find the right keywords to search for some things. My problem was related to the cclust package, and I still think that the cclust code will not work for unidimensional data. I will fix the my copy of the cclust code according to your suggestion. Moacir Pe

[R] subscripting a one column matrix drops dimension

2008-10-21 Thread moacir
cov(matrix(x[sub, ], ncol=ncol(x)) It works. I updated my source version of the cclust package. It may be of interest to somebody else, but I don't know how to submit to the package mantainer. Thank you. Moacir Pedroso Jr. Embrapa - Empresa Brasileira de Pesquisa Agropecuária (on lea

[R] subscripting a one column matrix drops dimension

2008-10-21 Thread Pedroso MOACIR
ge cclust, file Rindexes.R, lines 137-147: ttww <- function(x, clsize, cluster) { n <- sum(clsize) k <- length(clsize) w<-0 tt <- cov(x)*n for (l in 1:k) w<- w+cov(x[cluster==l,])*clsize[l] zttw <- list(tt=tt, w=w)