R program to run K-means and PAM partitioning algorithms on magnetic field decay data