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.