The following gives some quick ideas and codes on k-means clustering and hierarchical clustering methods using R.
University of California, Berkeley notes on clustering and R, especially on Hierarchical and agglomerative methods.
There is also a chapter on clustering methods on this data mining and case studies book. The chapter on clustering includes k-means, k-mediods, hierarchical, and density-based clustering methods.
Start here and we will take it from here with your intput.