Cluster analysis on two columns that contain name of person in R

Posted by Alka Shah on Stack Overflow See other posts from Stack Overflow or by Alka Shah
Published on 2012-07-09T09:13:10Z Indexed on 2012/07/09 9:15 UTC
Read the original article Hit count: 289

Filed under:

I am a beginner in R. I have to do cluster analysis in data that contains two columns with name of persons. I converted it in data frame but it is character type. To use dist() function the data frame must be numeric. example of my data:

 Interviewed.Type                 interviewed.Relation.Type

1. An1 Xuan 2. An2 The 3. An3 Ngoc 4. Bui Thi 5. ANT feed 7. Bach Thi 8. Gian1 Thi 9. Lan5 Thi . . . 1100. Xung Van

I will be grateful for your help.

© Stack Overflow or respective owner

Related posts about r