search for: distmethod

Displaying 3 results from an estimated 3 matches for "distmethod".

Did you mean: listmethod
2000 Sep 14
1
dynamically naming columns in a data frame
...en working with R for the last couple of weeks and I am very impressed with the capabilities. I am creating hundreds of tables and need to dynamically name the columns. Here is a small snippet of my code: # Turn my clustering data into a data.frame object. names( clusters ) <- Abbreviate( distMethods[ i ], hclustMethods[ j ] ) df <- data.frame( clusters, row.names = NULL, check.rows = FALSE, check.names = TRUE ) If the formatting turned out properly, you should only see three lines above, beginning with #, names, and df. Abbreviate() returns a variable that contains a string (my abbre...
2009 Mar 03
0
clust with "hclustWard"
...I tried to use clust function using "hclustWard" clustering method The distance mesaured I have used is "rf" The data used is in the form of data frame (it is not a distance matrix) - sd.df The piece of code I have used is: c1 <- clust(sd.df,k=6,method="hclustWard",distMethod="rf") But I get the following error message, Error in if (n < 2) stop("must have n >= 2 objects to cluster") : argument is of length zero Could any one help me with this? Also I tried to check the code of clust to find out where this error message appears in the code...
2010 Apr 11
0
cluster analysis :: urgent
hi, how can i do cluster analysis on spatial data? (longitude & latitude) Because i used the function clust of the clustTool package and it did'nt work at all: cl <- clust(dv,3,method="hclustAverage",distMethod="euclidean") thanks a lot Karine HEERAH Master 2 , océanographie et environnements marins Université Pierre et Marie Curie (Paris 6) _________________________________________________________________ Consultez gratuitement vos emails Orange, Gmail, Free, ... direc...