This package implements observation-weighted k-means, in an hopefully efficient way (relying on Fortran code and using parallelisation).
# install.packages("devtools")
devtools::install_github("jiho/wkmeans")
library("wkmeans")
?wkmeans
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.