search for: hclustfunc

Displaying 1 result from an estimated 1 matches for "hclustfunc".

Did you mean: hclustfun
2013 Dec 07
1
How to perform clustering without removing rows where NA is present in R
...low doesn't work? __BEGIN__ # plot heat map with dendogram together. library("gplots") library("cluster") # Arbitrarily assigning NA to some elements mtcars[2,2] <- "NA" mtcars[6,7] <- "NA" mydata <- mtcars hclustfunc <- function(x) hclust(x, method="complete") # Initially I wanted to use this but it didn't take NA #distfunc <- function(x) dist(x,method="euclidean") # Try using daisy GOWER function # which suppose to work with NA value distfunc <- function(x...