Error in as.vector(x, mode) : cannot coerce type 'closure' to vector of type 'any'

286 views Asked by At
library(dplyr)

dend1 <- df %>% 
 dist %>% 
 hclust("complete") %>% 
 as.dendrogram

Error in as.vector(x, mode) : cannot coerce type 'closure' to vector of type 'any'

Why is this error popping out? Thanks

I have tried multiple ways but couldn't manage to solve the issue.

0

There are 0 answers