Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

DATA SCIENCE WITH R | Nov 21 - Dec 20| Kapil Muley (2020)

_89730

Member
Kapil Sir
Kindly check my assignment
> matrix1 = matrix(c(1,2,3,4,5,6),nrow = 3,ncol = 2)
> matrix1
[,1] [,2]
[1,] 1 4
[2,] 2 5
[3,] 3 6
> colnames(matrix1) = c("C1","C2")
> matrix1
C1 C2
[1,] 1 4
[2,] 2 5
[3,] 3 6
> rownames(matrix1) = c("R1","R2","R3")
> matrix1
C1 C2
R1 1 4
R2 2 5
R3 3 6
 
Hi

For the clustering project, the problem statement asks us to use both K means and Hierarchical Clustering algorithms, but the number of observations are way more than 100, so how can I use Hierarchical clustering algorithm ?

Also I get the below error when I try to use K means clustering although there are no NAs in the dataset
"Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)"

Please help me resolve the error in K means clustering and answer the query on Hierarchical Clustering
 
Top