One hot encoding to carry out k-means[ clustering

r
one-hot-encoding
k-meansclustering

#1

I have a dataset on crime, and it is a categorical data type and I want to perform kmeans clustering using R language. I’m really new to clustering and R studio and have little understanding of this software. I’ve done some research and found out that I have to perform “one hot encoding” in R for the categorical data type. I would like to know how to perform one hot encoding and how I could fix this issue. I would be grateful if any of you could help me.


#2

Hi @mara27,

Have a look at this discussion thread-