K means cluster - R session aborted

Hi everyone,
I am conducting K means cluster with the package:

library(factoextra)
set.seed(123)
fviz_nbclust(df, kmeans, method = "wss") +
geom_vline(xintercept = 4, linetype = 2)

My dataset has ~3 million transaction records. However, when i run the above code, it took R more than 15 mins, and the error comes: "R session aborted. R encountered a fatal error. The session was terminated" :disappointed_relieved:

Could you please help me how i can deal with that problem!
Thank you so much!

P/S: I use R version 3.3.3 (2017-03-06). I use MacPro, core i7, 8GB, 1600 GHz

please send a small reproducible example. How can we possibly guess what is going on with your data?

As von_olaf have said, with out a minimal REPRoducible EXample (reprex) we can just guess what your problem is, and I'm guessing that you are running out of RAM memory because of the size of your dataset.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.