1

from this cmeans function :

 x1=c(55,60,75,80)
 x2=c(30,20,15,23)
 x3=c(4,3,2,6)
 x=data.frame(x1,x2,x3)
  library(e1071)
  fcm=cmeans(x,2,80)
  fcm

  #  Fuzzy c-means clustering with 2 clusters

  #  Cluster centers:
  #      v1       v2       v3
  #  1 57.40432 25.29914 3.532451
  #  2 77.40394 19.06642 4.018641

   # Memberships:
   #   1          2
   # [1,] 0.95674506 0.04325494
   # [2,] 0.89673114 0.10326886
   # [3,] 0.05938016 0.94061984
   # [4,] 0.04769093 0.95230907

   # Closest hard clustering:
   #  [1] 1 1 2 2

from that result how to extract just Cluster centers part : how to do it in r ??? without the name of variable

 1 57.40432 25.29914 3.532451
 2 77.40394 19.06642 4.018641
  • 1
    You found that function in some package not in (base) R. Maybe consult its documentation, presumably located at `?cmeans` – Frank Feb 16 '16 at 21:38
  • When asking for help with non-base functions, you should explicitly list the pacakge(s) involved. Also, include sample data to make the question [reproducible](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) – MrFlick Feb 16 '16 at 21:40
  • yes from `e1071` package – user5934339 Feb 16 '16 at 21:40

1 Answers1

2

This matrix is given by fcm$centers.

Julius Vainora
  • 47,421
  • 9
  • 90
  • 102